Problem unluckyfloors
User AJR
Submission Time 2022-12-26 16:09:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

unluckyfloors.cpp:118: error: unterminated argument list invoking macro "assert"
118 | }
|
unluckyfloors.cpp: In function ‘int32_t main()’:
unluckyfloors.cpp:107:17: error: ‘assert’ was not declared in this scope
107 | assert(preorder[idx] <= postorder[idx];
| ^~~~~~
unluckyfloors.cpp:2:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
1 | #include <bits/stdc++.h>
+++ |+#include <cassert>
2 | using namespace std;
unluckyfloors.cpp:107:17: error: expected ‘}’ at end of input
107 | assert(preorder[idx] <= postorder[idx];
| ^~~~~~
unluckyfloors.cpp:99:18: note: to match this ‘{’
99 | else {
| ^
unluckyfloors.cpp:107:17: error: expected ‘}’ at end of input
107 | assert(preorder[idx] <= postorder[idx];