Borderou de evaluare (job #798814)
Utilizator | Data | 17 octombrie 2012 13:04:20 | |
---|---|---|---|
Problema | Project management | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10: error: ‘int time [128]’ redeclared as different kind of symbol
/usr/include/time.h:186: error: previous declaration of ‘time_t time(time_t*)’
user.cpp: In function ‘void read()’:
user.cpp:18: warning: pointer to a function used in arithmetic
user.cpp:18: error: ambiguous overload for ‘operator>>’ in ‘in >> *(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: In function ‘void build()’:
user.cpp:44: warning: statement has no effect
user.cpp: In function ‘void solve()’:
user.cpp:65: warning: pointer to a function used in arithmetic
user.cpp:65: warning: pointer to a function used in arithmetic
user.cpp:65: error: ISO C++ forbids comparison between pointer and integer
user.cpp:66: warning: pointer to a function used in arithmetic
user.cpp:66: warning: pointer to a function used in arithmetic
user.cpp:66: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’
user.cpp:74: warning: pointer to a function used in arithmetic
user.cpp:74: error: invalid operands of types ‘int’ and ‘time_t(time_t*)’ to binary ‘operator-’
user.cpp:75: warning: pointer to a function used in arithmetic
user.cpp:75: error: invalid operands of types ‘int’ and ‘time_t(time_t*)’ to binary ‘operator-’
user.cpp: In function ‘void out()’:
user.cpp:81: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !