Main.cpp: In function 'int main()':
Main.cpp:40:28: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
40 | int a; scanf("%d", a);
| ~^ ~
| | |
| | int
| int*
Main.cpp:65:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
65 | int a, b; scanf("%d%d", a, b);
| ~^ ~
| | |
| int* int
Main.cpp:65:29: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
65 | int a, b; scanf("%d%d", a, b);
| ~^ ~
| | |
| int* int
Main.cpp:40:25: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
40 | int a; scanf("%d", a);
| ~~~~~^~~~~~~~~
Main.cpp:65:24: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
65 | int a, b; scanf("%d%d", a, b);
| ~~~~~^~~~~~~~~~~~~~
Main.cpp:40:17: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
40 | int a; scanf("%d", a);
| ^
Main.cpp:65:13: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
65 | int a, b; scanf("%d%d", a, b);
| ^
Main.cpp:66:26: warning: 'b' may be used uninitialized in this function [-Wmaybe-uninitialized]
66 | if(accesible[a][b]){
| ^