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_20634565_4137.cpp: In function 'int main()':
0_0_20634565_4137.cpp:29:30: error: request for member 'clear' in 'edge', which is of non-class type 'std::vector<int> [100010]'
                         edge.clear();
                              ^
0_0_20634565_4137.cpp:30:27: error: incompatible types in assignment of 'int' to 'int [100010]'
                         ru=0;
                           ^
0_0_20634565_4137.cpp:31:28: error: incompatible types in assignment of 'int' to 'int [100010]'
                         vis=0;
                            ^
0_0_20634565_4137.cpp:40: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_20634565_4137.cpp:42:27: error: lvalue required as increment operand
                         ru++;ru[a]++;
                           ^
0_0_20634565_4137.cpp:47:31: error: incompatible types in assignment of 'int [100010]' to 'int [2]'
                         res[1]=val;
                               ^
0_0_20634565_4137.cpp:48:31: error: incompatible types in assignment of 'int' to 'int [2]'
                         res[0]=0;
                               ^
0_0_20634565_4137.cpp:53:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
                         if(ru==1)
                                ^
0_0_20634565_4137.cpp:64:45: error: cannot convert 'std::vector<int>' to 'int' in initialization
                                 int y=edge[x];
                                             ^
0_0_20634565_4137.cpp:83:65: error: invalid conversion from 'int*' to 'int' [-fpermissive]
                                 rs[0][0]=rs[0][1]=rs[1][0]=res[0];
                                                                 ^
0_0_20634565_4137.cpp:84:47: error: invalid conversion from 'int*' to 'int' [-fpermissive]
                                 rs[1][1]=res[1];
                                               ^
0_0_20634565_4137.cpp:86:36: error: incompatible types in assignment of 'int' to 'int [100010]'
                                 vis=1;
                                    ^
0_0_20634565_4137.cpp:105:55: error: incompatible types in assignment of 'const int*' to 'int [2]'
                                                 nrs[0]=max(rs[0],rs[1])+res[x][0];
                                                       ^
0_0_20634565_4137.cpp:106:55: error: incompatible types in assignment of 'int*' to 'int [2]'
                                                 nrs[1]=rs[0]+max(res[x][0],res[x][1]);
                                                       ^
0_0_20634565_4137.cpp:110: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-29 23:37:45, Gzip enabled