Problem goofyrooks
User Hytoh
Submission Time 2023-12-30 14:08:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goofyrooks.cpp: In function ‘int main()’:
goofyrooks.cpp:8:25: error: ‘K’ was not declared in this scope
8 | for (int i = 0; i < K; i++) {
| ^
goofyrooks.cpp:11:9: error: ‘attackedrows’ was not declared in this scope; did you mean ‘attackedrow’?
11 | attackedrows.insert(x);
| ^~~~~~~~~~~~
| attackedrow
goofyrooks.cpp:14:30: error: ‘attackedrows’ was not declared in this scope; did you mean ‘attackedrow’?
14 | int unattackedrows = n - attackedrows.size();
| ^~~~~~~~~~~~
| attackedrow