Problem duckhunt5
User crazy0215
Submission Time 2025-08-19 14:25:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

duckhunt5.cpp:1:9: error: macro names must be identifiers
1 | #define <bits/stdc++.h>
| ^
duckhunt5.cpp:2:1: error: ‘include’ does not name a type
2 | include namespace std;
| ^~~~~~~
duckhunt5.cpp: In function ‘int main()’:
duckhunt5.cpp:6:9: error: ‘cin’ was not declared in this scope
6 | int n; cin >> n;
| ^~~
duckhunt5.cpp:7:2: error: ‘multiset’ was not declared in this scope
7 | multiset<int> a;
| ^~~~~~~~
duckhunt5.cpp:3:13: error: expected primary-expression before ‘long’
3 | #define int long long
| ^~~~
duckhunt5.cpp:7:11: note: in expansion of macro ‘int’
7 | multiset<int> a;
| ^~~
duckhunt5.cpp:10:13: error: ‘a’ was not declared in this scope
10 | if (x==1) a.insert(y);
| ^
duckhunt5.cpp:11:18: error: ‘a’ was not declared in this scope
11 | else if (x==2) a