Problem potatosalad
User GanJaeHan
Submission Time 2026-01-28 17:06:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:13:2: error: expected ‘,’ or ‘;’ before ‘for’
13 | for (int i = 0; i < K; i++){
| ^~~
potatosalad.cpp:13:18: error: ‘i’ was not declared in this scope
13 | for (int i = 0; i < K; i++){
| ^
potatosalad.cpp:20:21: error: ‘max’ cannot be used as a function
20 | max = max(max, sum);
| ^