Problem | permutationgrid |
---|---|
User | brat |
Submission Time | 2025-09-24 15:23:16 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
permutationgrid.cpp: In function ‘int main()’:
permutationgrid.cpp:22:3: error: ‘cur_h’ was not declared in this scope
22 | cur_h = track.first; cur_w = track.second;
| ^~~~~
permutationgrid.cpp:22:24: error: ‘cur_w’ was not declared in this scope
22 | cur_h = track.first; cur_w = track.second;
| ^~~~~
permutationgrid.cpp:24:81: error: no match for ‘operator=’ (operand types are ‘std::pair<long long int, long long int>’ and ‘<brace-enclosed initializer list>’)
24 | if (grid[cur_h + 1][cur_w] == grid[cur_h][cur_w] + 1) {track = {cur_h+1, cur_w};}
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,