Problem smallprimes
User Sans12345
Submission Time 2024-12-06 15:24:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

smallprimes.cpp:32: error: unterminated argument list invoking macro "assert"
32 | }
|
smallprimes.cpp: In function ‘int main()’:
smallprimes.cpp:28:3: error: ‘assert’ was not declared in this scope
28 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.cpp:3:1: note: ‘assert’ is defined in header ‘<cassert>’; did you forget to ‘#include <cassert>’?
2 | #include <cassert>
+++ |+#include <cassert>
3 | using namespace std;
smallprimes.cpp:28:3: error: expected ‘}’ at end of input
28 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.cpp:24:15: note: to match this ‘{’
24 | while(Q--){
| ^
smallprimes.cpp:28:3: error: expected ‘}’ at end of input
28 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.cpp:18:11: note: to match this ‘{’
18 | in