dungeons.cpp: In function 'void init(int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
dungeons.cpp:36:8: warning: statement has no effect [-Wunused-value]
36 | debug("ini!\n");
| ~^~~~~~~~~
dungeons.cpp:52:11: warning: left operand of comma operator has no effect [-Wunused-value]
52 | debug("%d -> %d\n",i,jmp[k][0][i]);
| ^~~~~~~~~~~~
dungeons.cpp:52:37: warning: right operand of comma operator has no effect [-Wunused-value]
52 | debug("%d -> %d\n",i,jmp[k][0][i]);
| ^
dungeons.cpp: In function 'long long int simulate(int, int)':
dungeons.cpp:84:9: warning: left operand of comma operator has no effect [-Wunused-value]
84 | debug("x %d z %d k %d\n",x,z,k);
| ^~~~~~~~~~~~~~~~~~
dungeons.cpp:84:30: warning: right operand of comma operator has no effect [-Wunused-value]
84 | debug("x %d z %d k %d\n",x,z,k);
| ^
dungeons.cpp:84:32: warning: right operand of comma operator has no effect [-Wunused-value]
84 | debug("x %d z %d k %d\n",x,z,k);
| ^
dungeons.cpp:89:9: warning: statement has no effect [-Wunused-value]
89 | debug("\n");
| ~^~~~~
dungeons.cpp:95:11: warning: left operand of comma operator has no effect [-Wunused-value]
95 | debug("%d jmp %d to %d add %d\n",x,1<<j,jmp[k][j][x],inc[k][j][x]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
dungeons.cpp:95:43: warning: right operand of comma operator has no effect [-Wunused-value]
95 | debug("%d jmp %d to %d add %d\n",x,1<<j,jmp[k][j][x],inc[k][j][x]);
| ^
dungeons.cpp:95:41: warning: right operand of comma operator has no effect [-Wunused-value]
95 | debug("%d jmp %d to %d add %d\n",x,1<<j,jmp[k][j][x],inc[k][j][x]);
| ~^~~
dungeons.cpp:95:56: warning: right operand of comma operator has no effect [-Wunused-value]
95 | debug("%d jmp %d to %d add %d\n",x,1<<j,jmp[k][j][x],inc[k][j][x]);
| ~~~~~~~~~~~^
dungeons.cpp:100:9: warning: left operand of comma operator has no effect [-Wunused-value]
100 | debug("z %d x %d stx %d\n",z,x,strength[x]);
| ^~~~~~~~~~~~~~~~~~~~
dungeons.cpp:100:32: warning: right operand of comma operator has no effect [-Wunused-value]
100 | debug("z %d x %d stx %d\n",z,x,strength[x]);
| ^
dungeons.cpp:100:44: warning: right operand of comma operator has no effect [-Wunused-value]
100 | debug("z %d x %d stx %d\n",z,x,strength[x]);
| ^
dungeons.cpp:112:15: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
112 | printf("ans %d\n",z);
| ~^ ~
| | |
| int long long int
| %lld