| Problem | potatosalad |
|---|---|
| User | notachicken |
| Submission Time | 2026-05-08 14:02:55 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
potatosalad.cpp:4:26: error: expected constructor, destructor, or type conversion before ‘(’ token
4 | ios_base::sync_with_stdio(0);
| ^
potatosalad.cpp:5:1: error: ‘cin’ does not name a type
5 | cin.tie(0);
| ^~~
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:14:5: error: ‘sort’ was not declared in this scope; did you mean ‘qsort’?
14 | sort(a + 1, a + n + 1);
| ^~~~
| qsort
potatosalad.cpp:16:39: error: lvalue required as decrement operand
16 | for (int i = n; i >= n - d + 1; --1){
| ^
potatosalad.cpp:19:16: error: expected ‘;’ before ‘}’ token
19 | cout << ans
| ^
| ;
20 |
21 | }
| ~