Submission #2853548
Source Code Expand
#include <bits/stdc++.h> using namespace std; string a; string b = "aiueo"; int c = 0; int main(){ cin>>a; for(i=0;i<5;++i){ if(a == b[i]){ cout<<"vowel"<<endl; c = 1; break; } } if(c == 0){ cout<<"consonant"<<endl; } }
Submission Info
Submission Time | |
---|---|
Task | A - UOIAUAI |
User | terasak |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 278 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:9:7: error: ‘i’ was not declared in this scope for(i=0;i<5;++i){ ^