Problem cheerleaders
User AltheaZ
Submission Time 2023-11-08 21:16:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cheerleaders.cpp: In function ‘int main()’:
cheerleaders.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0;i<n;i++){
| ^
cheerleaders.cpp:13:2: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
13 | sort(cheer,cheer+n,[](circus x,circus y){return x.w+x.s<y.w+y.s;});
| ^~~~
| qsort