Problem catlunch
User zyh255
Submission Time 2023-02-16 08:23:39
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:16:5: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
16 | return;
| ^~~~~~
catlunch.cpp:17:9: error: redeclaration of ‘int ans’
17 | int ans = 0, cur = 0;
| ^~~
catlunch.cpp:11:9: note: ‘int ans’ previously declared here
11 | int ans = 0;
| ^~~