Problem feast
User OIaspirant2307
Submission Time 2024-04-10 15:40:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

feast.cpp: In function ‘int main()’:
feast.cpp:13:9: error: ‘c’ was not declared in this scope
13 | c += arr[i];
| ^
feast.cpp:18:9: error: ‘kd’ was not declared in this scope; did you mean ‘k’?
18 | kd = max(kd, c);
| ^~
| k
feast.cpp:20:13: error: ‘kd’ was not declared in this scope; did you mean ‘k’?
20 | cout << kd << '\n';
| ^~
| k