0_0_30844124_23171.cpp:10:20: error: expected ']' before ';' token
#define maxn 200008;
^
0_0_30844124_23171.cpp:12:7: note: in expansion of macro 'maxn'
int q[maxn];
^
0_0_30844124_23171.cpp:12:11: error: expected unqualified-id before ']' token
int q[maxn];
^
0_0_30844124_23171.cpp:10:20: error: expected ']' before ';' token
#define maxn 200008;
^
0_0_30844124_23171.cpp:16:4: note: in expansion of macro 'maxn'
}a[maxn];
^
0_0_30844124_23171.cpp:16:8: error: expected unqualified-id before ']' token
}a[maxn];
^
0_0_30844124_23171.cpp: In function 'int main()':
0_0_30844124_23171.cpp:24:15: error: 'a' was not declared in this scope
scanf("%d",&a[i].val);
^
0_0_30844124_23171.cpp:27:7: error: 'a' was not declared in this scope
sort(a+1,a+n+1,cmp);
^
0_0_30844124_23171.cpp:37:14: error: 'q' was not declared in this scope
if(!cnt) q[++cnt]=a[i].val;
^
0_0_30844124_23171.cpp:39:6: error: 'q' was not declared in this scope
q[++cnt]=a[i].val;
^
|