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_17367724_318.cpp: In function 'int BFS()':
0_0_17367724_318.cpp:31:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
 for(int i=head;i!=-1;i=edge.nxt){
           ^
0_0_17367724_318.cpp:31:29: error: request for member 'nxt' in 'edge', which is of non-class type 'Edge [400020]'
 for(int i=head;i!=-1;i=edge.nxt){
                             ^
0_0_17367724_318.cpp:32:12: error: request for member 'to' in 'edge', which is of non-class type 'Edge [400020]'
 int v=edge.to;
            ^
0_0_17367724_318.cpp:33:9: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
 if(edge.cap>0 && dep[v]==-1){
         ^
0_0_17367724_318.cpp:34:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
 dep[v]=dep+1;
           ^
0_0_17367724_318.cpp: In function 'int DFS(int, int)':
0_0_17367724_318.cpp:45:11: error: invalid conversion from 'int*' to 'int' [-fpermissive]
 for(int i=head;i!=-1;i=edge.nxt){
           ^
0_0_17367724_318.cpp:45:29: error: request for member 'nxt' in 'edge', which is of non-class type 'Edge [400020]'
 for(int i=head;i!=-1;i=edge.nxt){
                             ^
0_0_17367724_318.cpp:46:12: error: request for member 'to' in 'edge', which is of non-class type 'Edge [400020]'
 int v=edge.to;
            ^
0_0_17367724_318.cpp:47:9: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
 if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
         ^
0_0_17367724_318.cpp:47:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
 if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
                              ^
0_0_17367724_318.cpp:47:60: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
 if(edge.cap>0 && dep[v]==dep+1 && (tmp=DFS(v,min(minx,edge.cap)))){
                                                            ^
0_0_17367724_318.cpp:48:6: error: request for member 'cap' in 'edge', which is of non-class type 'Edge [400020]'
 edge.cap-=tmp;
      ^
0_0_17367724_318.cpp:53:4: error: incompatible types in assignment of 'int' to 'int [1010]'
 dep=-1;
    ^


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-17 01:58:46, Gzip enabled