Borderou de evaluare (job #2125318)

Utilizator andrei.arnautuAndi Arnautu andrei.arnautu Data 8 februarie 2018 13:07:36
Problema Minuni Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:34:30: error: ‘int time [100005]’ redeclared as different kind of symbol int whichIdx[maxM], time[maxM]; ^ In file included from /usr/include/pthread.h:24:0, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr-default.h:35, from /usr/include/x86_64-linux-gnu/c++/5/32/bits/gthr.h:148, from /usr/include/c++/5/ext/atomicity.h:35, from /usr/include/c++/5/bits/basic_string.h:39, from /usr/include/c++/5/string:52, from /usr/include/c++/5/stdexcept:39, from /usr/include/c++/5/array:38, from /usr/include/c++/5/tuple:39, from /usr/include/c++/5/bits/stl_map.h:63, from /usr/include/c++/5/map:61, from user.cpp:4: /usr/include/time.h:192:15: note: previous declaration ‘time_t time(time_t*)’ extern time_t time (time_t *__timer) __THROW; ^ user.cpp: In function ‘void ProcessEvents()’: user.cpp:101:39: warning: pointer to a function used in arithmetic [-Wpointer-arith] whichIdx[events[i].idx] = time[q]; ^ user.cpp:101:39: error: invalid conversion from ‘time_t (*)(time_t*) throw () {aka long int (*)(long int*) throw ()}’ to ‘int’ [-fpermissive] user.cpp:102:21: warning: pointer to a function used in arithmetic [-Wpointer-arith] time[++crtTime] = events[i].idx; ^ user.cpp:102:23: error: assignment of read-only location ‘*(time + ((sizetype)(++ crtTime)))’ time[++crtTime] = events[i].idx; ^ user.cpp:102:23: error: cannot convert ‘int’ to ‘time_t(time_t*) throw () {aka long int(long int*) throw ()}’ in assignment user.cpp: In function ‘void ReadInput()’: user.cpp:42:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &n, &m); ^ user.cpp:45:49: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &rng[i].first, &rng[i].second); ^

Ceva nu functioneaza?