Problem catlunch
User christal
Submission Time 2023-12-18 15:53:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:18:28: error: ‘i’ was not declared in this scope
18 | satisf.push(totalfish[i]);
| ^
catlunch.cpp: At global scope:
catlunch.cpp:20:2: error: ‘cout’ does not name a type
20 | cout << max_satisf;
| ^~~~
catlunch.cpp:21:1: error: expected declaration before ‘}’ token
21 | }
| ^