Submission #598191

#TimeUsernameProblemLanguageResultExecution timeMemory
598191OzyBridges (APIO19_bridges)C++17
Compilation error
0 ms0 KiB
.lower_bound(arr[a]); orden.erase(it); arr[a].w = b; orden.insert(arr[a]); } else { if (m == 0) {cout << 1 << endl; continue;} //query rep(i,1,n) uf[i] = {i,1}; auto it = orden.begin(); while ((*it).w <= b) { x = sube((*it).u); y = sube((*it).v); if (x != y) une(x,y); it++; } a = sube(a); cout << uf[a].tam << endl; } } }

Compilation message (stderr)

bridges.cpp:1:1: error: expected unqualified-id before '.' token
    1 | .lower_bound(arr[a]);
      | ^
bridges.cpp:2:13: error: 'orden' does not name a type
    2 |             orden.erase(it);
      |             ^~~~~
bridges.cpp:3:13: error: 'arr' does not name a type
    3 |             arr[a].w = b;
      |             ^~~
bridges.cpp:4:13: error: 'orden' does not name a type
    4 |             orden.insert(arr[a]);
      |             ^~~~~
bridges.cpp:5:9: error: expected declaration before '}' token
    5 |         }
      |         ^
bridges.cpp:6:9: error: expected unqualified-id before 'else'
    6 |         else {
      |         ^~~~
bridges.cpp:26:5: error: expected declaration before '}' token
   26 |     }
      |     ^
bridges.cpp:27:1: error: expected declaration before '}' token
   27 | }
      | ^