Borderou de evaluare (job #1865651)

Utilizator FlorinHajaFlorin Gabriel Haja FlorinHaja Data 1 februarie 2017 22:01:40
Problema Flux maxim de cost minim Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:15:91: error: ‘int fmin’ redeclared as different kind of symbol int cap[maxn][maxn], f[maxn][maxn], cs[maxn][maxn], dist[maxn], distT[maxn], distV[maxn], fmin; ^ In file included from /usr/include/features.h:357:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39, from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420, from /usr/include/c++/4.8/cstdio:41, from user.cpp:1: /usr/include/i386-linux-gnu/bits/mathcalls.h:343:1: error: previous declaration of ‘double fmin(double, double)’ __MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y)); ^ user.cpp: In function ‘int fa_traseu()’: user.cpp:25:10: error: overloaded function with no contextual type information fmin = f_mare; ^ user.cpp:28:38: error: invalid operands of types ‘<unresolved overloaded function type>’ and ‘int’ to binary ‘operator>’ fmin = min(fmin, cap[tt[y]][y]); ^ user.cpp:8:21: note: in definition of macro ‘min’ #define min(x,y) (x>y?y:x) ^ user.cpp:34:23: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator-’ cap[tt[y]][y] -= fmin; ^ user.cpp:34:23: error: in evaluation of ‘operator-=(int, <unresolved overloaded function type>)’ user.cpp:37:20: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator+’ [y][tt[y]] += fmin; ^ user.cpp:37:20: error: in evaluation of ‘operator+=(int, <unresolved overloaded function type>)’ user.cpp:40:22: error: invalid operands of types ‘int’ and ‘<unresolved overloaded function type>’ to binary ‘operator*’ return distV[sf]*fmin; ^ user.cpp: In function ‘int main()’: user.cpp:130:23: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(G,"%d",sol); ^ user.cpp: In function ‘int fa_traseu()’: user.cpp:41:1: warning: control reaches end of non-void function [-Wreturn-type] } ^ user.cpp: In function ‘int main()’: user.cpp:116:50: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(F, "%d %d %d %d\n", &n, &m, &inc, &sf); ^ user.cpp:118:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(F, "%d %d %d %d\n", &x, &y, &z, &t); ^

Ceva nu functioneaza?