Borderou de evaluare (job #642050)
Utilizator | Data | 30 noiembrie 2011 15:22:12 | |
---|---|---|---|
Problema | Smart | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:27: error: ‘int time’ 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 main()’:
user.cpp:41: warning: the address of ‘time_t time(time_t*)’ will always evaluate as ‘true’
user.cpp: In function ‘void Read()’:
user.cpp:48: warning: unused variable ‘ch’
user.cpp:59: warning: unused variable ‘iv’
user.cpp:59: warning: unused variable ‘jv’
user.cpp: In function ‘int bfs()’:
user.cpp:107: error: ISO C++ forbids comparison between pointer and integer
user.cpp:111: error: no match for ‘operator==’ in ‘std::make_pair [with _T1 = int, _T2 = int](j, (rec.std::pair<int, int>::second + 1)) == std::make_pair [with _T1 = int, _T2 = time_t (*)(time_t*)throw ()](D, time)’
user.cpp: In function ‘bool bfs1()’:
user.cpp:140: error: ISO C++ forbids comparison between pointer and integer
user.cpp:147: error: no match for ‘operator==’ in ‘std::make_pair [with _T1 = int, _T2 = int](j, (t + 1)) == std::make_pair [with _T1 = int, _T2 = time_t (*)(time_t*)throw ()](D, time)’
user.cpp: In function ‘void Augment()’:
user.cpp:172: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’
user.cpp: In function ‘void Solve()’:
user.cpp:188: error: assignment of function ‘time_t time(time_t*)’
user.cpp:188: error: cannot convert ‘int’ to ‘time_t(time_t*)throw ()’ in assignment
user.cpp:190: warning: pointer to a function used in arithmetic
user.cpp:190: error: assignment of function ‘time_t time(time_t*)’
user.cpp:190: error: cannot convert ‘time_t (*)(time_t*)throw ()’ to ‘time_t(time_t*)throw ()’ in assignment
In file included from /usr/include/c++/4.4/bits/stl_algobase.h:66,
from /usr/include/c++/4.4/bits/char_traits.h:41,
from /usr/include/c++/4.4/ios:41,
from /usr/include/c++/4.4/istream:40,
from /usr/include/c++/4.4/fstream:40,
from user.cpp:1:
/usr/include/c++/4.4/bits/stl_pair.h: In constructor ‘std::pair<_T1, _T2>::pair(const std::pair<_U1, _U2>&) [with _U1 = int, _U2 = time_t (*)(time_t*)throw (), _T1 = int, _T2 = int]’:
user.cpp:192: instantiated from here
/usr/include/c++/4.4/bits/stl_pair.h:101: 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 !