Submission #985070

#TimeUsernameProblemLanguageResultExecution timeMemory
985070reverberationCyberland (APIO23_cyberland)C++17
Compilation error
0 ms0 KiB
double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) { vector<vector<pll>> g(n + 1); for (ll i = 0; i < m; i++) { ll a = x[i] + 1, b = y[i] + 1, cost = c[i]; g[a].pb({b, cost}); g[b].pb({a, cost}); } vector<ll> dist(n + 1, 1e9 + 10); dist[1] = 0; priority_queue<pll, vector<pll>, greater<pll>> q; q.push({0, 1}); while (!q.empty()) { auto [curcost, v] = q.top(); q.pop(); if (curcost != dist[v]) continue; for (auto [to, cost] : g[v]) { if (dist[to] > dist[v] + cost) { dist[to] = dist[v] + cost; q.push({dist[to], to}); } } } return dist[h]; }

Compilation message (stderr)

cyberland.cpp:1:14: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |              ^~
cyberland.cpp:1:20: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                    ^~
cyberland.cpp:1:26: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                          ^~
cyberland.cpp:1:32: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                ^~
cyberland.cpp:1:38: error: 'vector' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                      ^~~~~~
cyberland.cpp:1:45: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                             ^~
cyberland.cpp:1:49: error: 'x' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                 ^
cyberland.cpp:1:52: error: 'vector' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                    ^~~~~~
cyberland.cpp:1:59: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                           ^~
cyberland.cpp:1:63: error: 'y' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                               ^
cyberland.cpp:1:66: error: 'vector' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                  ^~~~~~
cyberland.cpp:1:73: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                         ^~
cyberland.cpp:1:77: error: 'c' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                             ^
cyberland.cpp:1:80: error: 'vector' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                                ^~~~~~
cyberland.cpp:1:87: error: 'll' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                                       ^~
cyberland.cpp:1:91: error: 'v' was not declared in this scope
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                                           ^
cyberland.cpp:1:92: error: expression list treated as compound expression in initializer [-fpermissive]
    1 | double solve(ll n, ll m, ll k, ll h, vector<ll> x, vector<ll> y, vector<ll> c, vector<ll> v) {
      |                                                                                            ^