nuclearia.cpp: In function 'int main()':
nuclearia.cpp:15:7: error: request for member 'resize' in 'A', which is of non-class type 'int [2500002][2]'
15 | A.resize(W);
| ^~~~~~
nuclearia.cpp:16:7: error: request for member 'resize' in 'B', which is of non-class type 'int [2500002][2]'
16 | B.resize(W);
| ^~~~~~
nuclearia.cpp:19:14: error: request for member 'resize' in 'A[i]', which is of non-class type 'int [2]'
19 | A[i].resize(H);
| ^~~~~~
nuclearia.cpp:20:14: error: request for member 'resize' in 'B[i]', which is of non-class type 'int [2]'
20 | B[i].resize(H);
| ^~~~~~
nuclearia.cpp:35:76: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
35 | B[i][j] = (i?B[i-1][j]:0) + (j?B[i][j-1]:0) - ((long long int)i*j?B[i-1][j-1]:0) + A[i][j];
| ~~~~~~~~~~~~~~~~^~
nuclearia.cpp:44:77: warning: '*' in boolean context, suggest '&&' instead [-Wint-in-bool-context]
44 | long long int val = B[c][d] - (a?B[a-1][d]:0) - (b?B[c][b-1]:0) + (a*b?B[a-1][b-1]:0);
| ~^~