Problem duckhunt26
User ethantanaki
Submission Time 2026-12-04 10:52:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt26.cpp: In function ‘int main()’:
duckhunt26.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
duckhunt26.cpp:7:2: note: in expansion of macro ‘int’
7 | int n; cin>>n;
| ^~~
duckhunt26.cpp:7:6: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | int n; cin>>n;
| ^
| yn
duckhunt26.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
duckhunt26.cpp:8:2: note: in expansion of macro ‘int’
8 | int sum=0;
| ^~~
duckhunt26.cpp:8:6: error: ‘sum’ was not declared in this scope
8 | int sum=0;
| ^~~
duckhunt26.cpp:3:18: error: declaration does not declare anything [-fpermissive]
3 | #define int long long;
| ^~~~
duckhunt26.cpp:10:3: note: in expan