Accepted
/in/foo.cc: In function 'int main()': /in/foo.cc:13:19: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=] scanf("%s",&s[i]); ~~~~~^ /in/foo.cc:26:21: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[1001]' [-Wformat=] printf("%s",&s[i]),exit(0); ~~~~~^