Problem lineup
User cheryltkx
Submission Time 2026-05-16 11:56:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lineup.cpp: In function ‘int32_t main()’:
lineup.cpp:8:7: error: ‘N’ was not declared in this scope
8 | cin>>N;
| ^
lineup.cpp:20:19: error: ‘r’ was not declared in this scope
20 | for (int l=0;l<n;r++){
| ^
lineup.cpp:23:23: error: expected ‘)’ before ‘{’ token
23 | if(m[x[r].second]==1{
| ~ ^
| )
lineup.cpp:31:12: error: ‘best’ was not declared in this scope; did you mean ‘bestans’?
31 | cout<<best ans;
| ^~~~
| bestans
lineup.cpp:32:1: error: expected ‘}’ at end of input
32 | }
| ^
lineup.cpp:4:15: note: to match this ‘{’
4 | int32_t main(){
| ^