Problem | catlunch |
---|---|
User | christal |
Submission Time | 2023-12-18 15:50:55 |
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:17: error: ‘current’ was not declared in this scope
14 | max = max(max,current);
| ^~~~~~~
catlunch.cpp:14:24: error: ‘max’ cannot be used as a function
14 | max = max(max,current);
| ^
catlunch.cpp:17:28: error: ‘i’ was not declared in this scope
17 | satisf.push(totalfish[i]);
| ^
catlunch.cpp: At global scope:
catlunch.cpp:19:2: error: ‘cout’ does not name a type
19 | cout << max;
| ^~~~
catlunch.cpp:20:1: error: expected declaration before ‘}’ token
20 | }
| ^