Mã chấm: 268844


Main.cc: In function ‘int main()’:
Main.cc:11:11: warning: ‘char* gets(char*)’ is deprecated [-Wdeprecated-declarations]
     gets(s);
           ^
In file included from /usr/include/stdio.h:862:0,
                 from Main.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio2.h:232:1: note: declared here
 gets (char *__str)
 ^~~~
Main.cc:16:17: warning: statement has no effect [-Wunused-value]
             s[i]=='a';
             ~~~~^~~~~
Main.cc:17:19: error: ‘n’ was not declared in this scope
     for(int i=0;i