0_0_33270769_21527.cpp:3:14: error: expected primary-expression before '=' token
#define maxn = 10001;
^
0_0_33270769_21527.cpp:4:10: note: in expansion of macro 'maxn'
int n, a[maxn*2], ans[maxn*2];
^
0_0_33270769_21527.cpp:3:21: error: expected ']' before ';' token
#define maxn = 10001;
^
0_0_33270769_21527.cpp:4:10: note: in expansion of macro 'maxn'
int n, a[maxn*2], ans[maxn*2];
^
0_0_33270769_21527.cpp:4:15: error: expected unqualified-id before numeric constant
int n, a[maxn*2], ans[maxn*2];
^
0_0_33270769_21527.cpp:4:15: error: expected constructor, destructor, or type conversion before numeric constant
0_0_33270769_21527.cpp:4:28: error: expected unqualified-id before numeric constant
int n, a[maxn*2], ans[maxn*2];
^
0_0_33270769_21527.cpp:4:28: error: expected constructor, destructor, or type conversion before numeric constant
0_0_33270769_21527.cpp: In function 'int main()':
0_0_33270769_21527.cpp:13:4: error: 'a' was not declared in this scope
a[i]=a[i+n]=x-y;
^
0_0_33270769_21527.cpp:18:11: error: 'a' was not declared in this scope
if(sum+a[i]>=0)
^
|