/in/foo.cc: In function 'void check(char*, char*, char*)':
/in/foo.cc:6:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++) printf("%c",a[n-1-i]); exit(0);
^~~
/in/foo.cc:6:49: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
for(int i=0;i<n;i++) printf("%c",a[n-1-i]); exit(0);
^~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:10:36: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[10001]' [-Wformat=]
scanf("%d%s%s%s",&n,&s1,&s2,&s3);
^
/in/foo.cc:10:36: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[10001]' [-Wformat=]
/in/foo.cc:10:36: warning: format '%s' expects argument of type 'char*', but argument 5 has type 'char (*)[10001]' [-Wformat=]