Problem | mining |
---|---|
User | vs358 |
Submission Time | 2024-11-18 21:46:13 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mining.cpp:3:13: error: expected initializer before ‘long’
3 | #define int long long
| ^~~~
mining.cpp:15:1: note: in expansion of macro ‘int’
15 | int r, c, k;
| ^~~
mining.cpp: In function ‘long long int emer(long long int, long long int)’:
mining.cpp:28:9: error: ‘dp’ was not declared in this scope; did you mean ‘dy’?
28 | dp[cx][cy] = curr.first;
| ^~
| dy
mining.cpp:29:40: error: return-statement with no value, in function returning ‘long long int’ [-fpermissive]
29 | if (cx == endc and cy == endr) return;
| ^~~~~~
mining.cpp:31:30: error: ‘c’ was not declared in this scope
31 | if(cx + dx[i] >= c or cx + dx[i] < 0 or cy + dy[i] >= r or cy + dy[i] < 0) continue;
| ^
mining.cpp:31:67: error: ‘r’ was not declared in this scope
31 |