Problem rushing
User Josh28acc2
Submission Time 2023-12-29 14:33:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rushing.cpp: In function ‘void solve()’:
rushing.cpp:66:13: error: ‘n’ was not declared in this scope
66 | ll dist[n+1];
| ^
rushing.cpp:70:21: error: ‘class std::vector<std::pair<long long int, long long int> >’ has no member named ‘push’
70 | adjlist[t2].push(back(MP(t1, t3)));
| ^~~~
rushing.cpp:70:26: error: ‘back’ was not declared in this scope
70 | adjlist[t2].push(back(MP(t1, t3)));
| ^~~~
rushing.cpp:73:12: error: ‘dist’ was not declared in this scope
73 | memset(dist, -1, sizeof(dist));
| ^~~~
rushing.cpp:75:28: error: no matching function for call to ‘std::priority_queue<long long int, std::vector<long long int>, std::greater<long long int> >::push(std::pair<int, int>)’
75 | pq.push(make_pair(0, 1)); // for multisource just push more nodes with dist 0
|