alternating.cpp: In function 'int main()':
alternating.cpp:41:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0; j < A[i].size(); ++ j)
~~^~~~~~~~~~~~~
alternating.cpp:67:9: error: 'B' was not declared in this scope
B = false; break;
^
alternating.cpp:69:8: error: 'B' was not declared in this scope
if(B) break;
^
alternating.cpp:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
alternating.cpp:30:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
~~~~~^~~~~~~~~~~~~~~~~