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

Compile Error

lineup.cpp: In function ‘int32_t main()’:
lineup.cpp:12:23: error: expected ‘;’ before ‘)’ token
12 | for(int i=0; i<n, i++){
| ^
| ;
lineup.cpp:19:27: error: ‘le18’ was not declared in this scope
19 | int uniq=0, r=0, bestans=le18
| ^~~~
lineup.cpp:20:15: error: ‘l’ was not declared in this scope
20 | for(int l=0; l<n; l++){
| ^
lineup.cpp:32:6: error: no match for ‘operator>>’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘long long int’)
32 | cout>>bestans;
| ~~~~^~~~~~~~~
| | |
| | long long int
| std::ostream {aka std::basic_ostream<char>}
lineup.cpp:32:6: note: candidate: ‘operator>>(int, long long int)’ <built-in>
32 | cout>>bestans;
| ~~~~^~~~~~~~~
lineup.cpp:32:6: note: no kno