mate.cpp: In function 'int main()':
mate.cpp:11:5: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(i=0;c[i]!=0;i++);n=i;
^~~
mate.cpp:11:26: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(i=0;c[i]!=0;i++);n=i;
^
mate.cpp:10:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",c);
~~~~~^~~~~~~~
mate.cpp:33:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&q);
~~~~~^~~~~~~~~
mate.cpp:36:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s",&l,a);
~~~~~^~~~~~~~~~~~~