Borderou de evaluare (job #1406649)

Utilizator PCMRCNIV Rada Dumitru PCMR Data 29 martie 2015 17:19:54
Problema Tempest Status done
Runda ONIS 2015, Runda 2 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:10:28: error: ‘int time’ redeclared as different kind of symbol int n,m,s,d,sum,D[DIM],x,y,time,edg[DIM],k,nr; ^ 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:55:17: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ f>>x>>y>>time; ^ In file included from /usr/include/c++/4.8/fstream:38:0, from user.cpp:1: /usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = long int(long int*)throw ()]’ operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x) ^ user.cpp:56:47: error: no matching function for call to ‘std::list<std::pair<int, int> >::push_back(std::pair<int, long int (*)(long int*)throw ()>)’ nod[x].push_back(make_pair(y,time)); ^ user.cpp:56:47: note: candidates are: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:1015:7: note: void std::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_list.h:1015:7: note: no known conversion for argument 1 from ‘std::pair<int, long int (*)(long int*)throw ()>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/4.8/bits/stl_list.h:1020:7: note: void std::list<_Tp, _Alloc>::push_back(std::list<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_list.h:1020:7: note: no known conversion for argument 1 from ‘std::pair<int, long int (*)(long int*)throw ()>’ to ‘std::list<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ user.cpp:57:47: error: no matching function for call to ‘std::list<std::pair<int, int> >::push_back(std::pair<int, long int (*)(long int*)throw ()>)’ nod[y].push_back(make_pair(x,time)); ^ user.cpp:57:47: note: candidates are: In file included from /usr/include/c++/4.8/list:63:0, from user.cpp:3: /usr/include/c++/4.8/bits/stl_list.h:1015:7: note: void std::list<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_list.h:1015:7: note: no known conversion for argument 1 from ‘std::pair<int, long int (*)(long int*)throw ()>’ to ‘const value_type& {aka const std::pair<int, int>&}’ /usr/include/c++/4.8/bits/stl_list.h:1020:7: note: void std::list<_Tp, _Alloc>::push_back(std::list<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::list<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x)

Ceva nu functioneaza?