0_0_21212110_5721.cpp:5:10: error: #include expects "FILENAME" or <FILENAME>
#include
^
0_0_21212110_5721.cpp: In function 'void dfs(int)':
0_0_21212110_5721.cpp:32:37: error: expected primary-expression before '=' token
for(int i=0;i<g[u].size();i++) {="" int="" v="g[u][i];" dfs(v);="" dp[u][0]+="max(dp[v][0],dp[v][1]);" if(dp[v][0]="=dp[v][1])" f[u][0]="0;" else="">dp[v][0]&&f[v][0]==0) f[u][0]=0;
^
0_0_21212110_5721.cpp:32:68: error: expected primary-expression before '=' token
for(int i=0;i<g[u].size();i++) {="" int="" v="g[u][i];" dfs(v);="" dp[u][0]+="max(dp[v][0],dp[v][1]);" if(dp[v][0]="=dp[v][1])" f[u][0]="0;" else="">dp[v][0]&&f[v][0]==0) f[u][0]=0;
^
0_0_21212110_5721.cpp:33:9: error: 'else' without a previous 'if'
else if(dp[v][0]<dp[v][1]&&f[v][1]==0) f[u][0]="0;" dp[u][1]+="dp[v][0];" if(f[v][0]="=0)" f[u][1]="0;" }="" int="" main()="" {="" n;="" while(~scanf("%d",&n)&&n)="" for(int="" i="0;i<=n;i++)" g[i].clear();="" dp[i][0]="0;" dp[i][1]="1;" f[i][0]="f[i][1]=1;" mp.clear();="" tot="0;" string="" s1,s2;="" cin="">>s1;
^
0_0_21212110_5721.cpp:33:20: error: 'v' was not declared in this scope
else if(dp[v][0]<dp[v][1]&&f[v][1]==0) f[u][0]="0;" dp[u][1]+="dp[v][0];" if(f[v][0]="=0)" f[u][1]="0;" }="" int="" main()="" {="" n;="" while(~scanf("%d",&n)&&n)="" for(int="" i="0;i<=n;i++)" g[i].clear();="" dp[i][0]="0;" dp[i][1]="1;" f[i][0]="f[i][1]=1;" mp.clear();="" tot="0;" string="" s1,s2;="" cin="">>s1;
^
0_0_21212110_5721.cpp:33:55: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
else if(dp[v][0]<dp[v][1]&&f[v][1]==0) f[u][0]="0;" dp[u][1]+="dp[v][0];" if(f[v][0]="=0)" f[u][1]="0;" }="" int="" main()="" {="" n;="" while(~scanf("%d",&n)&&n)="" for(int="" i="0;i<=n;i++)" g[i].clear();="" dp[i][0]="0;" dp[i][1]="1;" f[i][0]="f[i][1]=1;" mp.clear();="" tot="0;" string="" s1,s2;="" cin="">>s1;
^
0_0_21212110_5721.cpp:33:61: error: expected ';' before 'dp'
else if(dp[v][0]<dp[v][1]&&f[v][1]==0) f[u][0]="0;" dp[u][1]+="dp[v][0];" if(f[v][0]="=0)" f[u][1]="0;" }="" int="" main()="" {="" n;="" while(~scanf("%d",&n)&&n)="" for(int="" i="0;i<=n;i++)" g[i].clear();="" dp[i][0]="0;" dp[i][1]="1;" f[i][0]="f[i][1]=1;" mp.clear();="" tot="0;" string="" s1,s2;="" cin="">>s1;
^
0_0_21212110_5721.cpp:33:114: error: expected primary-expression before '=' token
else if(dp[v][0]<dp[v][1]&&f[v][1]==0) f[u][0]="0;" dp[u][1]+="dp[v][0];" if(f[v][0]="=0)" f[u][1]="0;" }="" int="" main()="" {="" n;="" while(~scanf("%d",&n)&&n)="" for(int="" i="0;i<=n;i++)" g[i].clear();="" dp[i][0]="0;" dp[i][1]="1;" f[i][0]="f[i][1]=1;" mp.clear();="" tot="0;" string="" s1,s2;="" cin="">>s1;
^
0_0_21212110_5721.cpp:57:12: error: return-statement with a value, in function returning 'void' [-fpermissive]
return 0;
^
|