Submission #5027042
Source Code Expand
#include <iostream> using namespace std; int main(){ int x, y; char str[31]; for(i=0; i<31; i++){ str[i] = '\0'; } scanf("%s", str); for(i=0; i<31; i++){ if(str[i]!='a' && str[i]!= 'i' && str[i]!= 'u' && str[i]!= 'e' && str[i]!= 'o'){ printf("%c", str[i]); } } return 0; }
Submission Info
Submission Time | |
---|---|
Task | B - 罠 |
User | chanchii |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 361 Byte |
Status | CE |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:7:9: error: ‘i’ was not declared in this scope for(i=0; i<31; i++){ ^ ./Main.cpp:12:9: error: ‘i’ was not declared in this scope for(i=0; i<31; i++){ ^ ./Main.cpp:10:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", str); ^