| Problem | dinowalk |
|---|---|
| User | PerihelionfromAphelion |
| Submission Time | 2026-08-01 09:33:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
dinowalk.cpp: In function ‘int main()’:
dinowalk.cpp:14:2: error: expected initializer before ‘for’
14 | for (i = 0; i < n; i++) {
| ^~~
dinowalk.cpp:14:14: error: ‘i’ was not declared in this scope
14 | for (i = 0; i < n; i++) {
| ^
dinowalk.cpp:20:8: error: ‘j’ was not declared in this scope
20 | for (j = 0; j < n; j++) {
| ^
dinowalk.cpp:21:16: error: ‘dist’ was not declared in this scope
21 | if (i == j) dist[i][j] = 0;
| ^~~~
dinowalk.cpp:22:9: error: ‘dist’ was not declared in this scope
22 | else dist[i][j] = LLONG_MAX / 4;
| ^~~~
dinowalk.cpp:29:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
29 | if (height < mid) height[i][j] = 0;
| ^~~
dinowalk.cpp:29:31: error: ‘j’ was not declared in this scope
29 |