| Problem | potatosalad |
|---|---|
| User | alex |
| Submission Time | 2026-06-21 12:56:56 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:11:59: error: expected ‘;’ before ‘long’
11 | sort(potatomass.begin(),potatomass.end(), greater<int>())
| ^
| ;
12 | long long ans = 0;
| ~~~~
potatosalad.cpp:14:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
14 | ans += potatomass[i];
| ^~~
| abs
potatosalad.cpp:16:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | cout << ans;
| ^~~
| abs
potatosalad.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
potatosalad.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^