Problem permutationgrid
User WouldIWas
Submission Time 2025-05-13 18:13:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:21:12: error: ‘b’ was not declared in this scope
21 | int j; b = j;
| ^
permutationgrid.cpp:27:19: error: ‘a’ was not declared in this scope
27 | next = min(arr[a+1][b], arr[a-1][b], arr[a][b+1], arr[a][b-1]);
| ^
permutationgrid.cpp:27:24: error: ‘b’ was not declared in this scope
27 | next = min(arr[a+1][b], arr[a-1][b], arr[a][b+1], arr[a][b-1]);
| ^
permutationgrid.cpp:28:16: error: invalid operands of types ‘long long int’ and ‘<unresolved overloaded function type>’ to binary ‘operator>’
28 | if (next > min){
| ~~~~~^~~~~
permutationgrid.cpp:29:11: error: overloaded function with no contextual type information
29 | min = next;
| ^~~~
permutationgrid.cpp:32:12: error: invalid conversion from ‘const char*’ to ‘int’ [-fpermi