utrka.cpp: In function 'int main()':
utrka.cpp:18:23: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[30]' [-Wformat=]
18 | char s[30]; scanf("%s",&s);
| ~^ ~~
| | |
| | char (*)[30]
| char*
utrka.cpp:19:16: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
19 | for(int j=0;j<strlen(s);++j)ans[j]^=s[j];
| ~^~~~~~~~~~
utrka.cpp:16:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
16 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
utrka.cpp:18:20: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
18 | char s[30]; scanf("%s",&s);
| ~~~~~^~~~~~~~~