0_0_37022583_9657.cpp: In function 'void solve()':
0_0_37022583_9657.cpp:25:27: error: 'n' was not declared in this scope
while (scanf("%d%d", &n, &m) != EOF) {
^
0_0_37022583_9657.cpp:25:31: error: 'm' was not declared in this scope
while (scanf("%d%d", &n, &m) != EOF) {
^
|