Borderou de evaluare (job #549420)

Utilizator DanceKrissCristian Oancea DanceKriss Data 8 martie 2011 16:24:30
Problema Project management Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:8: error: 'int time [128]' redeclared as different kind of symbol /usr/include/time.h:187: error: previous declaration of 'time_t time(time_t*)' user.cpp: In function 'void citire()': user.cpp:37: error: pointer to a function used in arithmetic user.cpp:37: error: ambiguous overload for 'operator>>' in 'in >> *(((time_t (*)(time_t*)throw ())((unsigned int)(++ i))) + time)' /usr/include/c++/4.2/istream:131: note: candidates are: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_istream<_CharT, _Traits>& (*)(std::basic_istream<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> /usr/include/c++/4.2/istream:135: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::basic_ios<_CharT, _Traits>& (*)(std::basic_ios<_CharT, _Traits>&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> /usr/include/c++/4.2/istream:142: note: std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator>>(std::ios_base& (*)(std::ios_base&)) [with _CharT = char, _Traits = std::char_traits<char>] <near match> user.cpp: In function 'void do_it(int)': user.cpp:60: error: pointer to a function used in arithmetic user.cpp:60: error: pointer to a function used in arithmetic user.cpp:60: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'long int' user.cpp:63: error: pointer to a function used in arithmetic user.cpp:63: error: pointer to a function used in arithmetic user.cpp:63: error: ISO C++ forbids comparison between pointer and integer user.cpp:64: error: pointer to a function used in arithmetic user.cpp:64: error: pointer to a function used in arithmetic user.cpp:64: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'long int' user.cpp: In function 'void task1()': user.cpp:73: error: pointer to a function used in arithmetic user.cpp:73: error: pointer to a function used in arithmetic user.cpp:73: error: ISO C++ forbids comparison between pointer and integer user.cpp:73: error: pointer to a function used in arithmetic user.cpp:73: error: pointer to a function used in arithmetic user.cpp:73: error: operands to ?: have different types 'time_t (*)(time_t*)throw ()' and 'long int' user.cpp: In function 'void faire(int)': user.cpp:80: error: pointer to a function used in arithmetic user.cpp:80: error: invalid operands of types 'long int' and 'time_t ()(time_t*)' to binary 'operator-' user.cpp:86: error: pointer to a function used in arithmetic user.cpp:86: error: invalid operands of types 'long int' and 'time_t ()(time_t*)' to binary 'operator-' user.cpp:89: error: pointer to a function used in arithmetic user.cpp:89: error: invalid operands of types 'long int' and 'time_t ()(time_t*)' to binary 'operator-' user.cpp:90: error: pointer to a function used in arithmetic user.cpp:90: error: invalid operands of types 'long int' and 'time_t ()(time_t*)' to binary 'operator-'

Ceva nu functioneaza?