Problem airplane2
User personjs
Submission Time 2026-02-27 10:46:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

airplane2.cpp:6:18: error: declaration does not declare anything [-fpermissive]
6 | #define int long long;
| ^~~~
airplane2.cpp:8:7: note: in expansion of macro ‘int’
8 | const int maxn = 2e5;
| ^~~
airplane2.cpp:8:11: error: ‘maxn’ does not name a type
8 | const int maxn = 2e5;
| ^~~~
airplane2.cpp:6:18: error: declaration does not declare anything [-fpermissive]
6 | #define int long long;
| ^~~~
airplane2.cpp:9:1: note: in expansion of macro ‘int’
9 | int a[maxn], h, w, k;
| ^~~
airplane2.cpp:9:5: error: ‘a’ does not name a type
9 | int a[maxn], h, w, k;
| ^
airplane2.cpp:6:22: error: expected ‘)’ before ‘;’ token
6 | #define int long long;
| ^
airplane2.cpp:11:12: note: in expansion of macro ‘int’
11 | bool check(int x) {
| ^~~
airplane2.cpp:11:11: n