Submission #433093

#TimeUsernameProblemLanguageResultExecution timeMemory
433093MonchitoPaint By Numbers (IOI16_paint)C++14
Compilation error
0 ms0 KiB
ll dijkstra(int x) { priority_queue<pair<ll, int>> q; vector<ll> dist(N, INF); dist[x] = 0; q.push(make_pair(-0, x)); while(!q.empty()) { pair<ll, int> p = q.top(); q.pop(); int u = p.second; if(-p.first != dist[u]) continue; for(int i=0; i<(int)G[u].size(); i++) { int v = G[u][i]; ll w = W[u][i]; if(-p.first + w < dist[v]) { dist[v] = -p.first + w; q.push( {-dist[v], v } ); } } } ll ret=0; for(int i=0; i<N; i++) ret = max(ret, dist[i]); return ret; }

Compilation message (stderr)

paint.cpp:1:1: error: 'll' does not name a type
    1 | ll dijkstra(int x) {
      | ^~