Problem competition
User JonathanChow
Submission Time 2025-02-08 17:53:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int competition()’:
competition.cpp:26:35: error: expected ‘;’ before ‘std’
26 | dscores[i]=pscores[i]-bscores[i]
| ^
| ;
27 | std::sort(bscores.begin(), bscores.end(), [&](int x, int y) {
| ~~~
competition.cpp:35:2: error: expected primary-expression before ‘)’ token
35 | });
| ^
competition.cpp:37:1: error: expected ‘}’ at end of input
37 | }
| ^
competition.cpp:7:19: note: to match this ‘{’
7 | int competition() {
| ^