Problem rmq
User Henries
Submission Time 2024-10-19 21:45:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

rmq.cpp: In function ‘int main()’:
rmq.cpp:26:12: error: expected primary-expression at end of input
26 | if (v[i] ==
| ^~
rmq.cpp:26:14: error: expected ‘)’ at end of input
26 | if (v[i] ==
| ~ ~~^
| )
rmq.cpp:26:12: error: expected statement at end of input
26 | if (v[i] ==
| ^~
rmq.cpp:26:12: error: expected ‘}’ at end of input
rmq.cpp:25:24: note: to match this ‘{’
25 | for(int i = 0;i<n;i++){
| ^
rmq.cpp:26:12: error: expected ‘}’ at end of input
26 | if (v[i] ==
| ^~
rmq.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^