Problem runway
User cheryltkx
Submission Time 2026-08-01 11:01:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
runway.cpp: In function ‘int main()’:
runway.cpp:19:38: error: expected ‘;’ before ‘{’ token
19 | for(int i=1;i<=N;i++)dist[i]=1e9{
| ^
| ;
runway.cpp:24:13: error: ‘pq’ was not declared in this scope
24 | while(!pq.empty()){
| ^~
runway.cpp:36:52: error: expected ‘;’ before ‘if’
36 | cout<<"M= "<<m<<" "<<"dist"<<dist[N]<<'\n'
| ^
| ;
37 | if(dist[N]<K){
| ~~
runway.cpp:40:10: error: ‘else’ without a previous ‘if’
40 | else l=m+1;
| ^~~~
runway.cpp:42:26: error: expected ‘;’ before ‘}’ token
42 | co