mobitel.cpp: In function 'int main()':
mobitel.cpp:39:25: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[100]' [-Wformat=]
39 | char s[100];scanf("%s", &s);
| ~^ ~~
| | |
| | char (*)[100]
| char*
mobitel.cpp:40:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
40 | for(int i=0;i<strlen(s);i++) {
| ~^~~~~~~~~~
mobitel.cpp: In function 'ii qry(char)':
mobitel.cpp:28:1: warning: control reaches end of non-void function [-Wreturn-type]
28 | }
| ^
mobitel.cpp: In function 'int main()':
mobitel.cpp:38:42: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
38 | for(int j, i=1;i<10;idx[j]=i++) scanf("%d", &j);
| ~~~~~^~~~~~~~~~
mobitel.cpp:39:22: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
39 | char s[100];scanf("%s", &s);
| ~~~~~^~~~~~~~~~