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_19231260_2943.cpp:24:7: error: 'a' was not declared in this scope
 int i=a;i<=b;i++)template<class T> inline 
       ^
0_0_19231260_2943.cpp:24:9: error: 'i' does not name a type
 int i=a;i<=b;i++)template<class T> inline 
         ^
0_0_19231260_2943.cpp:24:14: error: 'i' does not name a type
 int i=a;i<=b;i++)template<class T> inline 
              ^
0_0_19231260_2943.cpp:26:11: error: unable to find numeric literal operator 'operator""vector'
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:27:9: note: in expansion of macro 'N'
 int col[N],n;
         ^
0_0_19231260_2943.cpp:26:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:27:9: note: in expansion of macro 'N'
 int col[N],n;
         ^
0_0_19231260_2943.cpp:26:23: error: expected primary-expression before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:27:9: note: in expansion of macro 'N'
 int col[N],n;
         ^
0_0_19231260_2943.cpp:26:23: error: expected ']' before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:27:9: note: in expansion of macro 'N'
 int col[N],n;
         ^
0_0_19231260_2943.cpp:27:10: error: expected unqualified-id before ']' token
 int col[N],n;
          ^
0_0_19231260_2943.cpp:26:11: error: unable to find numeric literal operator 'operator""vector'
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:28:12: note: in expansion of macro 'N'
 double sum[N],L;
            ^
0_0_19231260_2943.cpp:26:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:28:12: note: in expansion of macro 'N'
 double sum[N],L;
            ^
0_0_19231260_2943.cpp:26:23: error: expected primary-expression before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:28:12: note: in expansion of macro 'N'
 double sum[N],L;
            ^
0_0_19231260_2943.cpp:26:23: error: expected ']' before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:28:12: note: in expansion of macro 'N'
 double sum[N],L;
            ^
0_0_19231260_2943.cpp:28:13: error: expected unqualified-id before ']' token
 double sum[N],L;
             ^
0_0_19231260_2943.cpp: In function 'void pre_dfs(int)':
0_0_19231260_2943.cpp:31:34: error: expected primary-expression before '{' token
 int x) {    rep(i,0,sz(to[x])-1) {        
                                  ^
0_0_19231260_2943.cpp:33:145: error: expected primary-expression before '}' token
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                 ^
0_0_19231260_2943.cpp:33:145: error: expected ';' before '}' token
0_0_19231260_2943.cpp:33:145: error: expected primary-expression before '}' token
0_0_19231260_2943.cpp:33:145: error: expected ')' before '}' token
0_0_19231260_2943.cpp:33:145: error: expected primary-expression before '}' token
0_0_19231260_2943.cpp: At global scope:
0_0_19231260_2943.cpp:26:11: error: unable to find numeric literal operator 'operator""vector'
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:33:168: note: in expansion of macro 'N'
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                                        ^
0_0_19231260_2943.cpp:26:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:33:168: note: in expansion of macro 'N'
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                                        ^
0_0_19231260_2943.cpp:26:23: error: expected primary-expression before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:33:168: note: in expansion of macro 'N'
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                                        ^
0_0_19231260_2943.cpp:26:23: error: expected ']' before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:33:168: note: in expansion of macro 'N'
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                                        ^
0_0_19231260_2943.cpp:33:169: error: expected unqualified-id before ']' token
 int y=to[x][i];        if (sum[y]<0) {            col[y]=x==1?y:col[x];            sum[y]=sum[x]+len[x][i];            pre_dfs(y);        }    }} vector<int> path,tmp[N];
                                                                                                                                                                         ^
0_0_19231260_2943.cpp:26:11: error: unable to find numeric literal operator 'operator""vector'
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:34:12: note: in expansion of macro 'N'
 double dp1[N],ans1[N];
            ^
0_0_19231260_2943.cpp:26:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:34:12: note: in expansion of macro 'N'
 double dp1[N],ans1[N];
            ^
0_0_19231260_2943.cpp:26:23: error: expected primary-expression before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:34:12: note: in expansion of macro 'N'
 double dp1[N],ans1[N];
            ^
0_0_19231260_2943.cpp:26:23: error: expected ']' before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:34:12: note: in expansion of macro 'N'
 double dp1[N],ans1[N];
            ^
0_0_19231260_2943.cpp:34:13: error: expected unqualified-id before ']' token
 double dp1[N],ans1[N];
             ^
0_0_19231260_2943.cpp:34:21: error: expected unqualified-id before ']' token
 double dp1[N],ans1[N];
                     ^
0_0_19231260_2943.cpp:26:11: error: unable to find numeric literal operator 'operator""vector'
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:35:12: note: in expansion of macro 'N'
 double dp2[N],ans2[N]; 
            ^
0_0_19231260_2943.cpp:26:11: note: use -std=gnu++11 or -fext-numeric-literals to enable more built-in suffixes
 #define N 20020vector<int> to[N],len[N];
           ^
0_0_19231260_2943.cpp:35:12: note: in expansion of macro 'N'
 double dp2[N],ans2[N]; 
            ^
0_0_19231260_2943.cpp:26:23: error: expected primary-expression before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:35:12: note: in expansion of macro 'N'
 double dp2[N],ans2[N]; 
            ^
0_0_19231260_2943.cpp:26:23: error: expected ']' before 'int'
 #define N 20020vector<int> to[N],len[N];
                       ^
0_0_19231260_2943.cpp:35:12: note: in expansion of macro 'N'
 double dp2[N],ans2[N]; 
            ^
0_0_19231260_2943.cpp:35:13: error: expected unqualified-id before ']' token
 double dp2[N],ans2[N]; 
             ^
0_0_19231260_2943.cpp:35:21: error: expected unqualified-id before ']' token
 double dp2[N],ans2[N]; 
                     ^
0_0_19231260_2943.cpp: In function 'double Y1(int)':
0_0_19231260_2943.cpp:37:16: error: 'dp1' was not declared in this scope
 int j) {return dp1[j]+sqrt(dp1[j])+sqr(sum[j])+2.0*sum[j]*L;}
                ^
0_0_19231260_2943.cpp:37:40: error: 'sum' was not declared in this scope
 int j) {return dp1[j]+sqrt(dp1[j])+sqr(sum[j])+2.0*sum[j]*L;}
                                        ^
0_0_19231260_2943.cpp:37:59: error: 'L' was not declared in this scope
 int j) {return dp1[j]+sqrt(dp1[j])+sqr(sum[j])+2.0*sum[j]*L;}
                                                           ^
0_0_19231260_2943.cpp: In function 'double Y2(int)':
0_0_19231260_2943.cpp:39:16: error: 'dp2' was not declared in this scope
 int j) {return dp2[j]+sqrt(dp2[j])+sqr(sum[j])-2.0*sum[j]*L;}
                ^
0_0_19231260_2943.cpp:39:40: error: 'sum' was not declared in this scope
 int j) {return dp2[j]+sqrt(dp2[j])+sqr(sum[j])-2.0*sum[j]*L;}
                                        ^
0_0_19231260_2943.cpp:39:59: error: 'L' was not declared in thi


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-04-20 07:32:20, Gzip enabled