Borderou de evaluare (job #1436142)

Utilizator mucenic_b101Bogdan Mucenic mucenic_b101 Data 15 mai 2015 11:25:41
Problema Tempest Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:22:44: error: ‘int time [300001]’ redeclared as different kind of symbol int x[MAXM + 1], y[MAXM + 1], time[MAXM + 1]; ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, 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:66:42: warning: pointer to a function used in arithmetic [-Wpointer-arith] cin >> x[i] >> y[i] >> time[i]; ^ user.cpp:66:25: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’ cin >> x[i] >> y[i] >> time[i]; ^ In file included from /usr/include/c++/4.8/iostream:40: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:67:53: warning: pointer to a function used in arithmetic [-Wpointer-arith] G[x[i]].push_back(make_pair(y[i], time[i])); ^ user.cpp:67:55: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::pair<int, long int (*)(long int*)throw ()>)’ G[x[i]].push_back(make_pair(y[i], time[i])); ^ user.cpp:67:55: note: candidates are: In file included from /usr/include/c++/4.8/vector:64:0, from /usr/include/c++/4.8/queue:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_vector.h:901:7: note: void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(const value_type& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:901: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_vector.h:919:7: note: void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = std::pair<int, int>; _Alloc = std::allocator<std::pair<int, int> >; std::vector<_Tp, _Alloc>::value_type = std::pair<int, int>] push_back(value_type&& __x) ^ /usr/include/c++/4.8/bits/stl_vector.h:919:7: note: no known conversion for argument 1 from ‘std::pair<int, long int (*)(long int*)throw ()>’ to ‘std::vector<std::pair<int, int> >::value_type&& {aka std::pair<int, int>&&}’ user.cpp:68:53: warning: pointer to a function used in arithmetic [-Wpointer-arith] G[y[i]].push_back(make_pair(x[i], time[i])); ^ user.cpp:68:55: error: no matching function for call to ‘std::vector<std::pair<int, int> >::push_back(std::pair<int, long int (*)(long int*)throw ()>)’ G[y[i]].push_back(make_pair(x[i], time[i]));

Ceva nu functioneaza?