F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;
            ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-30 00:13:03, Gzip enabled