Problem runway
User Rolo
Submission Time 2024-04-11 23:20:22
Score 0
Max Time N/A
Max Memory N/A

Compile Error

runway.cpp: In function ‘int main()’:
runway.cpp:60:62: error: expected ‘;’ before ‘if’
60 | one[u.second] = max(one[u.second], one[v] + (u.first==1))
| ^
| ;
61 | if(u.first==2)
| ~~
runway.cpp:65:18: error: expected ‘}’ before ‘else’
65 | }else
| ^~~~
runway.cpp:58:13: note: to match this ‘{’
58 | {
| ^
runway.cpp: At global scope:
runway.cpp:72:5: error: expected unqualified-id before ‘if’
72 | if(d[n] < k)
| ^~
runway.cpp:74:5: error: ‘cout’ does not name a type
74 | cout << (one[n] >= k) << '\n';
| ^~~~
runway.cpp:75:1: error: expected declaration before ‘}’ token
75 |