0_0_39675952_24572.cpp:1:15: error: 'N' was not declared in this scope
1 | int n, m, vis[N * N], sg[N][N], test;
| ^
0_0_39675952_24572.cpp:1:19: error: 'N' was not declared in this scope
1 | int n, m, vis[N * N], sg[N][N], test;
| ^
0_0_39675952_24572.cpp:1:26: error: 'N' was not declared in this scope
1 | int n, m, vis[N * N], sg[N][N], test;
| ^
0_0_39675952_24572.cpp:1:29: error: 'N' was not declared in this scope
1 | int n, m, vis[N * N], sg[N][N], test;
| ^
0_0_39675952_24572.cpp:2:9: error: 'N' was not declared in this scope
2 | char mp[N][N];
| ^
0_0_39675952_24572.cpp:2:12: error: 'N' was not declared in this scope
2 | char mp[N][N];
| ^
0_0_39675952_24572.cpp: In function 'void SG()':
0_0_39675952_24572.cpp:4:10: error: 'sg' was not declared in this scope; did you mean 'SG'?
4 | memset(sg, 0, sizeof sg);
| ^~
| SG
0_0_39675952_24572.cpp:4:3: error: 'memset' was not declared in this scope
4 | memset(sg, 0, sizeof sg);
| ^~~~~~
0_0_39675952_24572.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
+++ |+#include <cstring>
1 | int n, m, vis[N * N], sg[N][N], test;
0_0_39675952_24572.cpp:5:10: error: 'vis' was not declared in this scope
5 | memset(vis, 0, sizeof vis);
| ^~~
0_0_39675952_24572.cpp: In function 'void solve()':
0_0_39675952_24572.cpp:26:11: error: 'scanf' was not declared in this scope
26 | while (~scanf("%d%d", &n, &m)) {
| ^~~~~
0_0_39675952_24572.cpp:30:5: error: 'll' was not declared in this scope
30 | ll res = 0;
| ^~
0_0_39675952_24572.cpp:32:19: error: 'mp' was not declared in this scope; did you mean 'm'?
32 | scanf("%s", mp[i] + 1);
| ^~
| m
0_0_39675952_24572.cpp:35:11: error: 'res' was not declared in this scope
35 | res ^= sg[i][j];
| ^~~
0_0_39675952_24572.cpp:35:18: error: 'sg' was not declared in this scope; did you mean 'SG'?
35 | res ^= sg[i][j];
| ^~
| SG
0_0_39675952_24572.cpp:38:9: error: 'res' was not declared in this scope
38 | if (res == 0) {
| ^~~
0_0_39675952_24572.cpp:39:7: error: 'cout' was not declared in this scope
39 | cout << "Jack" << endl;
| ^~~~
0_0_39675952_24572.cpp:39:25: error: 'endl' was not declared in this scope
39 | cout << "Jack" << endl;
| ^~~~
0_0_39675952_24572.cpp:41:7: error: 'cout' was not declared in this scope
41 | cout << "John" << endl;
| ^~~~
0_0_39675952_24572.cpp:41:25: error: 'endl' was not declared in this scope
41 | cout << "John" << endl;
| ^~~~
|