0_0_30140518_28368.cpp:7:1: error: 'vector' does not name a type
vector<int> G[N];
^
0_0_30140518_28368.cpp: In function 'void init()':
0_0_30140518_28368.cpp:12:25: error: 'memset' was not declared in this scope
memset(dp,-1,sizeof(dp));
^
0_0_30140518_28368.cpp:15:22: error: 'G' was not declared in this scope
for(int i=0;i<N;i++)G[i].clear();
^
0_0_30140518_28368.cpp: In function 'bool input()':
0_0_30140518_28368.cpp:19:8: error: 'cin' was not declared in this scope
while(cin>>n>>m>>f) {
^
0_0_30140518_28368.cpp:20:44: error: 'scanf' was not declared in this scope
for(int i=1;i<=n;i++)scanf("%d",&value[i]);
^
0_0_30140518_28368.cpp:24:23: error: 'scanf' was not declared in this scope
scanf("%d %d",&u,&v);
^
0_0_30140518_28368.cpp:25:4: error: 'G' was not declared in this scope
G[u].push_back(v);
^
0_0_30140518_28368.cpp: In function 'int dfs(int, int)':
0_0_30140518_28368.cpp:35:5: error: 'G' was not declared in this scope
if(G[pos].size() == 0)return dp[pos][mark&1] = value[pos];
^
0_0_30140518_28368.cpp:37:23: error: 'inf' was not declared in this scope
int maxn = -1,minn = inf;
^
0_0_30140518_28368.cpp:38:16: error: 'G' was not declared in this scope
for(int i=0;i<G[pos].size();i++) {
^
0_0_30140518_28368.cpp:40:44: error: 'max' was not declared in this scope
if(mark&1)maxn = max(maxn,dfs(v,mark + 1));
^
0_0_30140518_28368.cpp:41:39: error: 'min' was not declared in this scope
else minn = min(minn,dfs(v,mark + 1));
^
0_0_30140518_28368.cpp: In function 'void cal()':
0_0_30140518_28368.cpp:52:26: error: 'max' was not declared in this scope
ans = max(ans,dfs(i,1));
^
0_0_30140518_28368.cpp:54:25: error: 'puts' was not declared in this scope
if(ans < f)puts("Glory");
^
0_0_30140518_28368.cpp:55:21: error: 'puts' was not declared in this scope
else puts("Victory");
^
|