Submission #1514658


Source Code Expand

#include<stdio.h>
int main(void){
int i;
char W[30];
scanf("%s",&W[30]);
for(i=0;i<30;i++){
     if(W[i]=='a'||W[i]=='i'||W[i]=='u'||W[i]=='e'||W[i]=='o'){
       continue;
      }
      printf("%s",W[i])
}
return 0;
}

Submission Info

Submission Time
Task B - 罠
User syoshizuka
Language C (GCC 5.4.1)
Score 0
Code Size 230 Byte
Status CE

Compile Error

./Main.c: In function ‘main’:
./Main.c:10:14: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘int’ [-Wformat=]
       printf("%s",W[i])
              ^
./Main.c:11:1: error: expected ‘;’ before ‘}’ token
 }
 ^
./Main.c:5:1: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s",&W[30]);
 ^