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