0_0_18229353_13694.cpp: In function 'int main()':
0_0_18229353_13694.cpp:4:15: error: expected primary-expression before '=' token
#define MAX_N = 100010
^
0_0_18229353_13694.cpp:12:10: note: in expansion of macro 'MAX_N'
int a[MAX_N];
^
0_0_18229353_13694.cpp:4:15: error: expected primary-expression before '=' token
#define MAX_N = 100010
^
0_0_18229353_13694.cpp:13:13: note: in expansion of macro 'MAX_N'
int next[MAX_N];
^
0_0_18229353_13694.cpp:15:18: error: 'a' was not declared in this scope
scanf("%d", &a[i]);
^
0_0_18229353_13694.cpp:19:9: error: 'a' was not declared in this scope
if (a[i] >= a[start]) {
^
0_0_18229353_13694.cpp:23:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[j] = i;
^
0_0_18229353_13694.cpp:29:11: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
next[i] = 999999999;
^
0_0_18229353_13694.cpp:37:15: error: 'a' was not declared in this scope
int ans = a[ansIndex];
^
0_0_18229353_13694.cpp:38:25: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
while (next[ansIndex] < r) {
^
0_0_18229353_13694.cpp:39:30: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
ansIndex = next[ansIndex];
^
|