Problem | catlunch |
---|---|
User | christal |
Submission Time | 2023-12-18 15:52:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:13:15: error: expected initializer before ‘+=’ token
13 | int current += satisf.top();
| ^~
catlunch.cpp:14:10: error: ‘current’ was not declared in this scope
14 | cin >> current;
| ^~~~~~~
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 | }
| ^