coprobber.cpp: In function 'int start(int, bool (*)[500])':
coprobber.cpp:22:15: error: incompatible types in assignment of 'int' to 'int [500][500]'
22 | nxt[i]=i;
| ~~~~~~^~
coprobber.cpp:23:13: error: 'class std::stack<std::array<int, 3> >' has no member named 'emplace_back'
23 | tmp.emplace_back(1,i,i);
| ^~~~~~~~~~~~
coprobber.cpp:24:13: error: 'class std::stack<std::array<int, 3> >' has no member named 'emplace_back'
24 | tmp.emplace_back(0,i,i);
| ^~~~~~~~~~~~
coprobber.cpp:27:24: error: no match for 'operator[]' (operand types are 'std::stack<std::array<int, 3> >' and 'int')
27 | auto[t,x,y]=tmp[it];
| ^
coprobber.cpp:35:25: error: 'class std::stack<std::array<int, 3> >' has no member named 'push_back'
35 | tmp.push_back({t^1,x,y2});
| ^~~~~~~~~
coprobber.cpp:45:21: error: 'class std::stack<std::array<int, 3> >' has no member named 'push_back'
45 | tmp.push_back({t^1,x2,y});
| ^~~~~~~~~
coprobber.cpp: In function 'int nextMove(int)':
coprobber.cpp:59:29: error: invalid conversion from 'int*' to 'int' [-fpermissive]
59 | return pos=nxt[pos][pos2];
| ~~~~~~~~~~~~~^
| |
| int*