Borderou de evaluare (job #1228913)

Utilizator axnsanCristi Vijdea axnsan Data 15 septembrie 2014 19:42:09
Problema Traseu3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In member function ‘int hotel::distanta()’: user.cpp:63:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < (sizeof dx / sizeof dx[0]); ++i) ^ user.cpp:65:21: warning: narrowing conversion of ‘(((int)c.coord::x) + ((int)dx[i]))’ from ‘int’ to ‘uint16_t {aka short unsigned int}’ inside { } [-Wnarrowing] coord next{ c.x + dx[i], c.y + dy[i], c.z + dz[i] }; ^ user.cpp:65:34: warning: narrowing conversion of ‘(((int)c.coord::y) + ((int)dy[i]))’ from ‘int’ to ‘uint16_t {aka short unsigned int}’ inside { } [-Wnarrowing] coord next{ c.x + dx[i], c.y + dy[i], c.z + dz[i] }; ^ user.cpp:65:47: warning: narrowing conversion of ‘(((int)c.coord::z) + ((int)dz[i]))’ from ‘int’ to ‘uint16_t {aka short unsigned int}’ inside { } [-Wnarrowing] coord next{ c.x + dx[i], c.y + dy[i], c.z + dz[i] }; ^ user.cpp: In member function ‘void hotel::drum(std::ostream&)’: user.cpp:84:49: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < (sizeof dx / sizeof dx[0]); ++i) ^ user.cpp: In function ‘void ignore_line(std::istream&)’: user.cpp:102:11: error: ‘numeric_limits’ is not a member of ‘std’ s.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); ^ user.cpp:102:46: error: expected primary-expression before ‘>’ token s.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); ^ user.cpp:102:47: error: ‘::max’ has not been declared s.ignore(std::numeric_limits<std::streamsize>::max(), '\n'); ^ user.cpp:102:47: note: suggested alternative: In file included from /usr/include/c++/4.8/bits/char_traits.h:39:0, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/ostream:38, from /usr/include/c++/4.8/iostream:39, from user.cpp:4: /usr/include/c++/4.8/bits/stl_algobase.h:260:5: note: ‘std::max’ max(const _Tp& __a, const _Tp& __b, _Compare __comp) ^

Ceva nu functioneaza?