0_0_22389406_17405.cpp:1:7: error: 'maxn' was not declared in this scope
int s[maxn],sg[maxn],n;
^
0_0_22389406_17405.cpp:1:16: error: 'maxn' was not declared in this scope
int s[maxn],sg[maxn],n;
^
0_0_22389406_17405.cpp: In function 'int SG_dfs(int)':
0_0_22389406_17405.cpp:4:8: error: 'sg' was not declared in this scope
if(sg[x]!=-1)
^
0_0_22389406_17405.cpp:6:14: error: 'maxn' was not declared in this scope
bool vis[maxn];
^
0_0_22389406_17405.cpp:7:12: error: 'vis' was not declared in this scope
memset(vis,false,sizeof(vis));
^
0_0_22389406_17405.cpp:7:33: error: 'memset' was not declared in this scope
memset(vis,false,sizeof(vis));
^
0_0_22389406_17405.cpp:10:15: error: 's' was not declared in this scope
if(x>=s[i])
^
0_0_22389406_17405.cpp:13:17: error: 'sg' was not declared in this scope
vis[sg[x-s[i]]]=true;
^
0_0_22389406_17405.cpp:18:20: error: 'sg' was not declared in this scope
return sg[x]=i;
^
0_0_22389406_17405.cpp: In function 'int main()':
0_0_22389406_17405.cpp:23:12: error: 'sg' was not declared in this scope
memset(sg,-1,sizeof(sg));
^
0_0_22389406_17405.cpp:23:28: error: 'memset' was not declared in this scope
memset(sg,-1,sizeof(sg));
^
0_0_22389406_17405.cpp:27:9: error: 's' was not declared in this scope
s[++n]=i;
^
0_0_22389406_17405.cpp:30:25: error: 'scanf' was not declared in this scope
while(~scanf("%d",&x))
^
0_0_22389406_17405.cpp:33:28: error: 'printf' was not declared in this scope
printf("Kiki\n");
^
0_0_22389406_17405.cpp:35:28: error: 'printf' was not declared in this scope
printf("Cici\n");
^
|