Problem itinerary
User toditisdoingthisforfun
Submission Time 2026-02-16 17:03:41
Score 0
Max Time N/A
Max Memory N/A

Compile Error

itinerary.cpp: In function ‘int main()’:
itinerary.cpp:72:65: error: expected ‘;’ at end of input
72 | for (int v : g[cur]) if (v != prev) { nxt = v; break
| ~~~~~^
| ;
itinerary.cpp:72:60: error: expected ‘}’ at end of input
72 | for (int v : g[cur]) if (v != prev) { nxt = v; break
| ~ ^~~~~
itinerary.cpp:72:60: error: expected ‘}’ at end of input
itinerary.cpp:69:26: note: to match this ‘{’
69 | while (cur != 0) {
| ^
itinerary.cpp:72:60: error: expected ‘}’ at end of input
72 | for (int v : g[cur]) if (v != prev) { nxt = v; break
| ^~~~~
itinerary.cpp:61:39: note: to match this ‘{’
61 |