Problem potatosalad
User dfsssssssssfsdfdssgdfs
Submission Time 2026-02-19 18:59:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:15:33: error: request for member ‘begin’ in ‘potatoes’, which is of non-class type ‘long int [a]’
15 | maxint = max_element(potatoes.begin(), potatoes.end());
| ^~~~~
potatosalad.cpp:15:51: error: request for member ‘end’ in ‘potatoes’, which is of non-class type ‘long int [a]’
15 | maxint = max_element(potatoes.begin(), potatoes.end());
| ^~~
potatosalad.cpp:17:46: error: request for member ‘begin’ in ‘maxpotatoes’, which is of non-class type ‘long int [b]’
17 | maxmashedpotatoes = accumulate(maxpotatoes.begin(),maxpotatoes.end());
| ^~~~~
potatosalad.cpp:17:66: error: request for member ‘end’ in ‘maxpotatoes’, which is of non-class type ‘long int [b]’
17 | maxmashedpotatoes = accumulate(maxpotatoes.begin(),maxpotatoes.end());