Borderou de evaluare (job #549331)
Utilizator | Data | 8 martie 2011 14:29:28 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9: 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:39: error: pointer to a function used in arithmetic
user.cpp:39: 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:63: error: pointer to a function used in arithmetic
user.cpp:63: error: pointer to a function used in arithmetic
user.cpp:63: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int'
user.cpp:66: error: pointer to a function used in arithmetic
user.cpp:66: error: pointer to a function used in arithmetic
user.cpp:66: error: ISO C++ forbids comparison between pointer and integer
user.cpp:67: error: pointer to a function used in arithmetic
user.cpp:67: error: pointer to a function used in arithmetic
user.cpp:67: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int'
user.cpp: In function 'void task1()':
user.cpp:77: error: pointer to a function used in arithmetic
user.cpp:77: error: pointer to a function used in arithmetic
user.cpp:77: error: ISO C++ forbids comparison between pointer and integer
user.cpp:77: error: pointer to a function used in arithmetic
user.cpp:77: error: pointer to a function used in arithmetic
user.cpp:77: error: operands to ?: have different types 'time_t (*)(time_t*)throw ()' and 'int'
user.cpp: In function 'void faire(int)':
user.cpp:84: error: pointer to a function used in arithmetic
user.cpp:84: error: invalid operands of types '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 'int' and 'time_t ()(time_t*)' to binary 'operator-'
user.cpp:93: error: pointer to a function used in arithmetic
user.cpp:93: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator-'
user.cpp:94: error: pointer to a function used in arithmetic
user.cpp:94: error: invalid operands of types 'int' and 'time_t ()(time_t*)' to binary 'operator-'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !