Problem collectmushrooms
User haiquan
Submission Time 2025-12-17 02:19:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

collectmushrooms.cpp: In function ‘int main()’:
collectmushrooms.cpp:22:13: error: ‘x’ was not declared in this scope
22 | if (x == 0){
| ^
collectmushrooms.cpp:35:23: error: redeclaration of ‘long long int x’
35 | long long x, y;
| ^
collectmushrooms.cpp:22:13: note: ‘<typeprefixerror>x’ previously declared here
22 | if (x == 0){
| ^
collectmushrooms.cpp: At global scope:
collectmushrooms.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^