Borderou de evaluare (job #1081155)

Utilizator MarghescuGabriel Marghescu Marghescu Data 13 ianuarie 2014 11:37:37
Problema Scara 3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:3:1: error: ‘ifstream’ does not name a type ifstream fi("scara3.in"); ^ user.cpp:4:1: error: ‘ofstream’ does not name a type ofstream fo("scara3.out"); ^ user.cpp:9:11: error: ‘::main’ must return ‘int’ void main() ^ user.cpp: In function ‘int main()’: user.cpp:13:6: error: ‘fi’ was not declared in this scope fi>>n; ^ user.cpp:16:20: error: ‘MAXLONG’ was not declared in this scope cost[i][j]=MAXLONG; ^ user.cpp:40:58: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (cost[nod1][nod2]>1000000-100*(nod2-nod1)+i1) ^ user.cpp:43:62: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (cost[nod1][nod2+1]>1000000-100*(nod2-nod1+1)+i1) ^ user.cpp:54:10: error: reference to ‘min’ is ambiguous min=MAXLONG; ^ user.cpp:7:46: note: candidates are: long unsigned int min unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min; ^ In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/fstream:38, from user.cpp:1: /usr/local/include/c++/4.8.0/bits/stl_algobase.h:239:5: note: template<class _Tp, class _Compare> const _Tp& std::min(const _Tp&, const _Tp&, _Compare) min(const _Tp& __a, const _Tp& __b, _Compare __comp) ^ /usr/local/include/c++/4.8.0/bits/stl_algobase.h:193:5: note: template<class _Tp> const _Tp& std::min(const _Tp&, const _Tp&) min(const _Tp& __a, const _Tp& __b) ^ user.cpp:54:14: error: ‘MAXLONG’ was not declared in this scope min=MAXLONG; ^ user.cpp:57:14: error: reference to ‘min’ is ambiguous if (min>d[i]) ^ user.cpp:7:46: note: candidates are: long unsigned int min unsigned long c[nmax+1],pd[nmax+1],d[nmax+1],min; ^ In file included from /usr/local/include/c++/4.8.0/bits/char_traits.h:39:0, from /usr/local/include/c++/4.8.0/ios:40,

Ceva nu functioneaza?