Problem funnysequence
User paaaaaaaaaaaaaaaaaaa
Submission Time 2024-11-19 15:06:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

funnysequence.cpp: In function ‘void init()’:
funnysequence.cpp:9:19: error: size ‘-2147483648’ of array ‘a’ is negative
9 | int a[INT_MAX + 1];
| ^
funnysequence.cpp:15:29: error: a function-definition is not allowed here before ‘{’ token
15 | int query(int l, int r) {
| ^