Problem potatosalad
User CapK1wi
Submission Time 2026-04-12 22:15:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:10:9: error: request for member ‘begin’ in ‘c’, which is of non-class type ‘int’
10 | sort(c.begin(), c.end());
| ^~~~~
potatosalad.cpp:10:20: error: request for member ‘end’ in ‘c’, which is of non-class type ‘int’
10 | sort(c.begin(), c.end());
| ^~~
potatosalad.cpp:11:4: error: request for member ‘accumulate’ in ‘c’, which is of non-class type ‘int’
11 | c.accumulate(c[N-1], c[-1]);
| ^~~~~~~~~~
potatosalad.cpp:11:20: error: invalid types ‘int[int]’ for array subscript
11 | c.accumulate(c[N-1], c[-1]);
| ^
potatosalad.cpp:11:27: error: invalid types ‘int[int]’ for array subscript
11 | c.accumulate(c[N-1], c[-1]);
| ^