Borderou de evaluare (job #1229009)

Utilizator Impaler_009Mihai Nitu Impaler_009 Data 16 septembrie 2014 01:29:53
Problema Timetravel Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:24:13: error: ‘int time’ redeclared as different kind of symbol int n,m,del,time,ans,l,r; ^ 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 ‘void update(int, int, int)’: user.cpp:31:45: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘std::multiset<int>::key_type {aka int}’ [-fpermissive] s[left].erase (s[left].find(time)); ^ In file included from /usr/include/c++/4.8/set:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_multiset.h:643:7: error: initializing argument 1 of ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::find(const key_type&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::key_type = int]’ [-fpermissive] find(const key_type& __x) ^ user.cpp:32:34: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘std::multiset<int>::value_type {aka int}’ [-fpermissive] else s[left].insert (time); ^ In file included from /usr/include/c++/4.8/set:62:0, from user.cpp:2: /usr/include/c++/4.8/bits/stl_multiset.h:459:7: error: initializing argument 1 of ‘std::multiset<_Key, _Compare, _Alloc>::iterator std::multiset<_Key, _Compare, _Alloc>::insert(std::multiset<_Key, _Compare, _Alloc>::value_type&&) [with _Key = int; _Compare = std::less<int>; _Alloc = std::allocator<int>; std::multiset<_Key, _Compare, _Alloc>::iterator = std::_Rb_tree_const_iterator<int>; std::multiset<_Key, _Compare, _Alloc>::value_type = int]’ [-fpermissive] insert(value_type&& __x) ^ user.cpp: In function ‘void query(int, int, int)’: user.cpp:61:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (A[node<<1] > time) ^ user.cpp:63:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (A[(node<<1)+1] > time) ^ user.cpp:69:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (l <= mid && A[node<<1] > time) ^ user.cpp:71:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (r > mid && A[(node<<1)+1] > time) ^ user.cpp: In function ‘int main()’: user.cpp:125:22: error: assignment of function ‘time_t time(time_t*)’ time = q[i].y; ^ user.cpp:125:22: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment

Ceva nu functioneaza?