Borderou de evaluare (job #958672)

Utilizator tzipleatudTudor Tiplea tzipleatud Data 7 iunie 2013 18:31:48
Problema Timetravel Status done
Runda Algoritmiada 2013, Runda Finală, Clasele 11-12 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:48:13: error: ‘int time’ redeclared as different kind of symbol int o, val, time; ^ In file included from /usr/include/pthread.h:26:0, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr-default.h:35, from /usr/local/include/c++/4.8.0/i686-pc-linux-gnu/bits/gthr.h:148, from /usr/local/include/c++/4.8.0/ext/atomicity.h:33, from /usr/local/include/c++/4.8.0/bits/ios_base.h:39, from /usr/local/include/c++/4.8.0/ios:42, from /usr/local/include/c++/4.8.0/istream:38, from /usr/local/include/c++/4.8.0/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:69:17: error: assignment of function ‘time_t time(time_t*)’ time=GetInt(); ^ user.cpp:69:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:71: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] Exit[val].insert(time); ^ In file included from /usr/local/include/c++/4.8.0/set:62:0, from user.cpp:3: /usr/local/include/c++/4.8.0/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:82:17: error: assignment of function ‘time_t time(time_t*)’ time=GetInt(); ^ user.cpp:82:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:85:35: error: invalid conversion from ‘time_t (*)(time_t*)throw () {aka long int (*)(long int*)throw ()}’ to ‘std::multiset<int>::key_type {aka int}’ [-fpermissive] it=Exit[val].find(time); ^ In file included from /usr/local/include/c++/4.8.0/set:62:0, from user.cpp:3: /usr/local/include/c++/4.8.0/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:92:17: error: assignment of function ‘time_t time(time_t*)’ time=GetInt(); ^ user.cpp:92:17: error: cannot convert ‘int’ to ‘time_t(time_t*)throw () {aka long int(long int*)throw ()}’ in assignment user.cpp:100:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] if (*((el->second).begin())<=time) continue; ^

Ceva nu functioneaza?