Borderou de evaluare (job #1409223)

Utilizator eustatiuDima Eustatiu eustatiu Data 30 martie 2015 14:07:56
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘void edge::print()’: user.cpp:50:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=] printf ("%ld %ld %ld %ld\n",a,b,c,f); ^ user.cpp:50:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:50:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘int’ [-Wformat=] user.cpp:50:44: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘int’ [-Wformat=] user.cpp: In function ‘int BFS()’: user.cpp:9:47: error: ‘typeof’ was not declared in this scope #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp:67:9: note: in expansion of macro ‘FORIT’ FORIT (it,Vertex[node]) ^ user.cpp:67:16: error: expected ‘;’ before ‘it’ FORIT (it,Vertex[node]) ^ user.cpp:9:49: note: in definition of macro ‘FORIT’ #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp:67:16: error: ‘it’ was not declared in this scope FORIT (it,Vertex[node]) ^ user.cpp:9:65: note: in definition of macro ‘FORIT’ #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp:9:47: error: ‘typeof’ was not declared in this scope #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp:80:5: note: in expansion of macro ‘FORIT’ FORIT (it,Vertex[n]) ^ user.cpp:80:12: error: expected ‘;’ before ‘it’ FORIT (it,Vertex[n]) ^ user.cpp:9:49: note: in definition of macro ‘FORIT’ #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp:80:12: error: ‘it’ was not declared in this scope FORIT (it,Vertex[n]) ^ user.cpp:9:65: note: in definition of macro ‘FORIT’ #define FORIT( it, v ) for( typeof((v).begin()) it=(v).begin(); it!=(v).end(); ++it ) ^ user.cpp: In function ‘int main()’: user.cpp:121:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("maxflow.in","r",stdin); ^ user.cpp:122:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen ("maxflow.out","w",stdout);

Ceva nu functioneaza?