Problem | squarerect |
---|---|
User | itsLQ |
Submission Time | 2025-04-24 09:12:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
squarerect.cpp:1:1: error: ‘map’ does not name a type
1 | map<int, int> memo;
| ^~~
squarerect.cpp: In function ‘bool query(int, int)’:
squarerect.cpp:5:9: error: ‘memo’ was not declared in this scope
5 | if (memo.find(v) != memo.end()) return memo[v];
| ^~~~
squarerect.cpp:6:12: error: ‘memo’ was not declared in this scope
6 | return memo[v] = inside_shape(X, Y);
| ^~~~
squarerect.cpp:6:22: error: ‘inside_shape’ was not declared in this scope
6 | return memo[v] = inside_shape(X, Y);
| ^~~~~~~~~~~~
squarerect.cpp: In function ‘bool am_i_square(int, int)’:
squarerect.cpp:47:5: error: ‘memo’ was not declared in this scope
47 | memo.clear();
| ^~~~
squarerect.cpp:48:2: error: ‘vector’ was not declared in this scope
48 | vector<vector<int>> qrys(4, vector<int>(4));
| ^~~~~~
squarerect.cpp: