Borderou de evaluare (job #1619093)

Utilizator DeehoroEjkoliPop Darian DeehoroEjkoli Data 28 februarie 2016 12:33:29
Problema Rj Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:75: error: ‘int time [105][105]’ redeclared as different kind of symbol int n, m, map_romeo[nmax][nmax], map_juliette[nmax][nmax], time[nmax][nmax]; ^ In file included from /usr/include/pthread.h:26:0, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr-default.h:35, from /usr/include/i386-linux-gnu/c++/4.8/bits/gthr.h:148, from /usr/include/c++/4.8/ext/atomicity.h:33, from /usr/include/c++/4.8/bits/ios_base.h:39, from /usr/include/c++/4.8/ios:42, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/time.h:186:15: error: previous declaration of ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘int main()’: user.cpp:37:45: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0; j <= x.size() - 1; ++j) { ^ user.cpp:63:36: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[x + d_x[k]][y + d_y[k]] = map_juliette[x + d_x[k]][y + d_y[k]]; ^ user.cpp:63:48: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[x + d_x[k]][y + d_y[k]] = map_juliette[x + d_x[k]][y + d_y[k]]; ^ user.cpp:63:50: error: assignment of read-only location ‘*(time + (((sizetype)(d_x[k] + x)) + ((sizetype)(d_y[k] + y))))’ time[x + d_x[k]][y + d_y[k]] = map_juliette[x + d_x[k]][y + d_y[k]]; ^ user.cpp:63:50: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:64:61: warning: pointer to a function used in arithmetic [-Wpointer-arith] min_time = min(min_time, time[x + d_x[k]][y + d_y[k]]); ^ user.cpp:64:73: warning: pointer to a function used in arithmetic [-Wpointer-arith] min_time = min(min_time, time[x + d_x[k]][y + d_y[k]]); ^ user.cpp:64:74: error: no matching function for call to ‘min(int&, time_t (&)(time_t*)throw ())’ min_time = min(min_time, time[x + d_x[k]][y + d_y[k]]); ^ user.cpp:64:74: note: candidates are: 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/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/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) ^ /usr/include/c++/4.8/bits/stl_algobase.h:193:5: note: template argument deduction/substitution failed: user.cpp:64:74: note: deduced conflicting types for parameter ‘const _Tp’ (‘int’ and ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’) min_time = min(min_time, time[x + d_x[k]][y + d_y[k]]);

Ceva nu functioneaza?