Problem islands
User JoonYorigami
Submission Time 2026-05-21 16:57:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

islands.cpp: In function ‘std::variant<bool, std::vector<int, std::allocator<int> > > find_journey(int, int, std::vector<int>, std::vector<int>)’:
islands.cpp:159:16: error: expected initializer before ‘==’ token
159 | bool ST2Check==true;
| ^~
islands.cpp:163:23: error: expected primary-expression before ‘)’ token
163 | for(int j=0;j<n;++)
| ^
islands.cpp:164:7: error: ‘ST2Check’ was not declared in this scope; did you mean ‘ST3Check’?
164 | ST2Check&=times[i][j]==times[j][i];
| ^~~~~~~~
| ST3Check
islands.cpp:165:6: error: ‘ST2Check’ was not declared in this scope; did you mean ‘ST3Check’?
165 | if(ST2Check||ST3Check)
| ^~~~~~~~
| ST3Check