Problem competition
User wahjsodhowasd
Submission Time 2026-02-13 22:00:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

competition.cpp: In function ‘int main()’:
competition.cpp:20:42: error: expected primary-expression before ‘)’ token
20 | sort(diff.begin(),diff.end(),greater<int>)
| ^
competition.cpp:21:14: error: ‘i’ was not declared in this scope
21 | for (int i=0;i<a;i++){
| ^
competition.cpp:23:1: error: ‘Ans’ was not declared in this scope
23 | Ans+=accumulate(k.begin(),k.end(),0);
| ^~~
competition.cpp:24:10: error: expected ‘}’ at end of input
24 | cout<<Ans;
| ^
competition.cpp:6:7: note: to match this ‘{’
6 | main(){
| ^