Problem mining
User caiyt
Submission Time 2026-11-30 19:45:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mining.cpp:17:5: error: expected unqualified-id before ‘for’
17 | for(int i = 1; i <= r; i++){
| ^~~
mining.cpp:17:20: error: ‘i’ does not name a type
17 | for(int i = 1; i <= r; i++){
| ^
mining.cpp:17:28: error: ‘i’ does not name a type
17 | for(int i = 1; i <= r; i++){
| ^
mining.cpp:29:31: error: ‘r’ was not declared in this scope
29 | vector<vector<int>> moves(r+1,vector<int>(c+1,-1));
| ^
mining.cpp:29:47: error: ‘c’ was not declared in this scope
29 | vector<vector<int>> moves(r+1,vector<int>(c+1,-1));
| ^
mining.cpp:30:5: error: ‘q’ does not name a type
30 | q.push({sr,sc});
| ^
mining.cpp:30:19: error: expected unqualified-id before ‘)’ token
30 | q.push({sr,sc});