Submission #7084642


Source Code Expand

#include <iostream>

using namespace std;

int main()
{
 string W;
 int count;
 cin >> W;
 if(W.find("a") != std::string::npos)
 {
   count = W.find("a");
   W.erase(count, 1);
 }
 if(W.find("i") != std::string::npos)
 {
   count = N.find("i");
   W.erase(count, 1);
 }
 if(W.find("u") != std::string::npos)
 {
   count = W.find("u");
   W.erase(count, 1);
 }
 if(W.find("e") != std::string::npos)
 {
   count = W.find("e");
   W.erase(count, 1);
 }
 if(W.find("o") != std::string::npos)
 {
   count = W.find("o");
   W.erase(count, 1);
 }
 printf("W\n");
 return 0;
}

Submission Info

Submission Time
Task B - 罠
User Francisco
Language C++14 (GCC 5.4.1)
Score 0
Code Size 604 Byte
Status CE

Compile Error

./Main.cpp: In function ‘int main()’:
./Main.cpp:17:12: error: ‘N’ was not declared in this scope
    count = N.find("i");
            ^