Borderou de evaluare (job #546630)
Utilizator | Data | 5 martie 2011 11:34:04 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16: error: 'int time [102]' redeclared as different kind of symbol
/usr/include/time.h:187: error: previous declaration of 'time_t time(time_t*)'
user.cpp: In function 'int main()':
user.cpp:29: error: pointer to a function used in arithmetic
user.cpp:29: 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 bellmanFord()':
user.cpp:80: error: pointer to a function used in arithmetic
user.cpp:80: error: pointer to a function used in arithmetic
user.cpp:80: error: ISO C++ forbids comparison between pointer and integer
user.cpp:81: error: pointer to a function used in arithmetic
user.cpp:81: error: pointer to a function used in arithmetic
user.cpp:81: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int'
user.cpp:96: error: pointer to a function used in arithmetic
user.cpp:96: error: pointer to a function used in arithmetic
user.cpp:96: error: ISO C++ forbids comparison between pointer and integer
user.cpp:97: error: pointer to a function used in arithmetic
user.cpp:97: error: pointer to a function used in arithmetic
user.cpp:97: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !