Borderou de evaluare (job #637895)
Utilizator | Data | 20 noiembrie 2011 17:23:14 | |
---|---|---|---|
Problema | Zombie | Status | done |
Runda | .com 2011 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6: error: ‘int time [1000002]’ redeclared as different kind of symbol
/usr/include/time.h:186: error: previous declaration of ‘time_t time(time_t*)’
user.cpp: In function ‘int binary_search(int, int, int)’:
user.cpp:18: warning: pointer to a function used in arithmetic
user.cpp:18: error: ISO C++ forbids comparison between pointer and integer
user.cpp: In function ‘int main()’:
user.cpp:39: warning: pointer to a function used in arithmetic
user.cpp:39: error: ambiguous overload for ‘operator>>’ in ‘fin >> *(time + ((unsigned int)i))’
/usr/include/c++/4.4/istream:119: 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.4/istream:123: 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.4/istream:130: 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:40: warning: pointer to a function used in arithmetic
user.cpp:40: warning: pointer to a function used in arithmetic
user.cpp:40: warning: pointer to a function used in arithmetic
user.cpp:40: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’
user.cpp:40: error: initializing argument 3 of ‘int binary_search(int, int, int)’
user.cpp:41: warning: pointer to a function used in arithmetic
user.cpp:41: warning: pointer to a function used in arithmetic
user.cpp:41: warning: pointer to a function used in arithmetic
user.cpp:41: warning: pointer to a function used in arithmetic
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !