0_0_24913902_1355.cpp:8:13: error: expected primary-expression before '=' token
#define MAXN=200010;
^
0_0_24913902_1355.cpp:11:7: note: in expansion of macro 'MAXN'
int F[MAXN];
^
0_0_24913902_1355.cpp:8:20: error: expected ']' before ';' token
#define MAXN=200010;
^
0_0_24913902_1355.cpp:11:7: note: in expansion of macro 'MAXN'
int F[MAXN];
^
0_0_24913902_1355.cpp:11:11: error: expected unqualified-id before ']' token
int F[MAXN];
^
0_0_24913902_1355.cpp:8:13: error: expected primary-expression before '=' token
#define MAXN=200010;
^
0_0_24913902_1355.cpp:12:7: note: in expansion of macro 'MAXN'
int s[MAXN];
^
0_0_24913902_1355.cpp:8:20: error: expected ']' before ';' token
#define MAXN=200010;
^
0_0_24913902_1355.cpp:12:7: note: in expansion of macro 'MAXN'
int s[MAXN];
^
0_0_24913902_1355.cpp:12:11: error: expected unqualified-id before ']' token
int s[MAXN];
^
0_0_24913902_1355.cpp: In function 'int find(int)':
0_0_24913902_1355.cpp:16:8: error: 'F' was not declared in this scope
if(F[x]==-1)
^
0_0_24913902_1355.cpp:18:18: error: 'F' was not declared in this scope
int tmp=find(F[x]);
^
0_0_24913902_1355.cpp:19:5: error: 's' was not declared in this scope
s[x]+=s[F[x]];
^
0_0_24913902_1355.cpp: In function 'int main()':
0_0_24913902_1355.cpp:27:14: error: 'F' was not declared in this scope
{ memset(F,-1,sizeof(F));
^
0_0_24913902_1355.cpp:28:14: error: 's' was not declared in this scope
memset(s,0,sizeof(s));
^
|