Problem runway
User cheryltkx
Submission Time 2026-08-01 11:13:54
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:22:13: error: expected ‘;’ before ‘{’ token
22 | pq.push{0,1});
| ^
| ;
runway.cpp:22:9: error: statement cannot resolve address of overloaded function
22 | pq.push{0,1});
| ~~~^~~~
runway.cpp:22:18: error: expected primary-expression before ‘)’ token
22 | pq.push{0,1});
| ^
runway.cpp:35:52: error: expected ‘;’ before ‘if’
35 | cout<<"M= "<<m<<" "<<"dist"<<dist[N]<<'\n'
| ^
| ;
36 | if(dist[N]<K){
| ~~
runway.cpp:39:10: error: ‘else’ without a previous ‘if’
39 | else l=m+1;
| ^~~~