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