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_24154591_5738.cpp: In function 'int main()':
0_0_24154591_5738.cpp:31:30: error: request for member 'clear' in 'edge', which is of non-class type 'std::vector<int> [100010]'
                         edge.clear();
                              ^
0_0_24154591_5738.cpp:32:27: error: incompatible types in assignment of 'int' to 'int [100010]'
                         ru=0;
                           ^
0_0_24154591_5738.cpp:33:28: error: incompatible types in assignment of 'int' to 'int [100010]'
                         vis=0;
                            ^
0_0_24154591_5738.cpp:42:30: error: request for member 'push_back' in 'edge', which is of non-class type 'std::vector<int> [100010]'
                         edge.push_back(a);
                              ^
0_0_24154591_5738.cpp:44:27: error: lvalue required as increment operand
                         ru++;ru[a]++;
                           ^
0_0_24154591_5738.cpp:49:31: error: incompatible types in assignment of 'int [100010]' to 'int [2]'
                         res[1]=val;
                               ^
0_0_24154591_5738.cpp:50:31: error: incompatible types in assignment of 'int' to 'int [2]'
                         res[0]=0;
                               ^
0_0_24154591_5738.cpp:55:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         if(ru==1)
                                ^
0_0_24154591_5738.cpp:66:45: error: cannot convert 'std::vector<int>' to 'int' in initialization
                                 int y=edge[x];
                                             ^
0_0_24154591_5738.cpp:85:65: error: invalid conversion from 'int*' to 'int' [-fpermissive]
                                 rs[0][0]=rs[0][1]=rs[1][0]=res[0];
                                                                 ^
0_0_24154591_5738.cpp:86:47: error: invalid conversion from 'int*' to 'int' [-fpermissive]
                                 rs[1][1]=res[1];
                                               ^
0_0_24154591_5738.cpp:88:36: error: incompatible types in assignment of 'int' to 'int [100010]'
                                 vis=1;
                                    ^
0_0_24154591_5738.cpp:107:55: error: incompatible types in assignment of 'const int*' to 'int [2]'
                                                 nrs[0]=max(rs[0],rs[1])+res[x][0];
                                                       ^
0_0_24154591_5738.cpp:108:55: error: incompatible types in assignment of 'int*' to 'int [2]'
                                                 nrs[1]=rs[0]+max(res[x][0],res[x][1]);
                                                       ^
0_0_24154591_5738.cpp:112:62: error: invalid array assignment
                                                         rs[v]=nrs[v];
                                                              ^


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-26 07:24:01, Gzip enabled