Borderou de evaluare (job #2122202)

Utilizator AlexVulpoiuAlexandru Vulpoiu AlexVulpoiu Data 4 februarie 2018 19:07:43
Problema Flux maxim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:5:13: error: ‘int fmin’ redeclared as different kind of symbol int n,m,i,j,fmin,flux,b[1001],t[1001],f[1001][1001]; ^ In file included from /usr/include/features.h:367:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482, from /usr/include/c++/5/cstdio:41, from user.cpp:1: /usr/include/bits/mathcalls.h:353:1: note: previous declaration ‘double fmin(double, double)’ __MATHCALLX (fmin,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); ^ user.cpp: In function ‘int main()’: user.cpp:48:17: error: overloaded function with no contextual type information fmin=110001; ^ user.cpp:51:69: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator<’ if(f[t[j]][j]+f[j][t[j]]>0 && f[t[j]][j]+f[j][t[j]]<fmin) ^ user.cpp:52:25: error: overloaded function with no contextual type information fmin=f[t[j]][j]+f[j][t[j]]; ^ user.cpp:55:16: error: parse error in template argument list if(fmin<110001) ^ user.cpp:55:27: error: cannot resolve overloaded function ‘fmin’ based on conversion to type ‘bool’ if(fmin<110001) ^ user.cpp:56:21: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’ flux+=fmin; ^ user.cpp:56:21: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’ user.cpp:62:27: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator-’ f[j][t[j]]-=fmin; ^ user.cpp:62:27: error: in evaluation of ‘operator-=(int, <unresolved overloaded function type>)’ user.cpp:29:36: 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:30:38: 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); ^ user.cpp:31:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n",&n,&m); ^ user.cpp:34:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d %d\n",&i,&j,&flux); ^

Ceva nu functioneaza?