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

Compile Error

smallprimes.cpp:31: error: unterminated argument list invoking macro "assert"
31 | }
|
smallprimes.cpp: In function ‘int main()’:
smallprimes.cpp:27:3: error: ‘assert’ was not declared in this scope
27 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.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;
smallprimes.cpp:27:3: error: expected ‘}’ at end of input
27 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.cpp:23:15: note: to match this ‘{’
23 | while(Q--){
| ^
smallprimes.cpp:27:3: error: expected ‘}’ at end of input
27 | assert(tmp==(--upper_bound(arr.begin(),arr.end(),r));
| ^~~~~~
smallprimes.cpp:17:11: note: to match this ‘{’
1