Borderou de evaluare (job #769103)
Utilizator | Data | 18 iulie 2012 12:12:44 | |
---|---|---|---|
Problema | Filme | Status | done |
Runda | avram_vara_1 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5: error: ‘int time [10005]’ 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:18: warning: pointer to a function used in arithmetic
user.cpp:18: error: assignment of read-only location ‘*(time + ((unsigned int)i))’
user.cpp:18: error: cannot convert ‘int’ to ‘time_t(time_t*)’ in assignment
user.cpp:21: warning: pointer to a function used in arithmetic
user.cpp:21: warning: pointer to a function used in arithmetic
user.cpp:21: warning: pointer to a function used in arithmetic
user.cpp:24: warning: pointer to a function used in arithmetic
user.cpp:24: warning: pointer to a function used in arithmetic
user.cpp:24: error: invalid conversion from ‘time_t (*)(time_t*)throw ()’ to ‘int’
In file included from /usr/include/c++/4.4/algorithm:62,
from user.cpp:2:
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’:
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:5220: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = time_t (*)(time_t*)throw (), _Size = int]’:
/usr/include/c++/4.4/bits/stl_algo.h:5220: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2252: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.4/bits/stl_algo.h:5220: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2268: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.4/bits/stl_algo.h:5220: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2268: error: invalid cast to function type ‘time_t(time_t*)throw ()’
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’:
/usr/include/c++/4.4/bits/stl_algo.h:5222: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2176: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’:
/usr/include/c++/4.4/bits/stl_algo.h:2178: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’
/usr/include/c++/4.4/bits/stl_algo.h:5222: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2102: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw ()’
/usr/include/c++/4.4/bits/stl_algo.h:2105: error: variable ‘__val’ has function type
/usr/include/c++/4.4/bits/stl_algo.h:2105: error: variable ‘__val’ has function type
/usr/include/c++/4.4/bits/stl_algo.h:2178: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’
/usr/include/c++/4.4/bits/stl_algo.h:5222: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2105: error: variable ‘__val’ has function type
/usr/include/c++/4.4/bits/stl_algo.h:2105: error: variable ‘__val’ has function type
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::__unguarded_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’:
/usr/include/c++/4.4/bits/stl_algo.h:2179: instantiated from ‘void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’
/usr/include/c++/4.4/bits/stl_algo.h:5222: instantiated from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = time_t (*)(time_t*)throw ()]’
user.cpp:21: instantiated from here
/usr/include/c++/4.4/bits/stl_algo.h:2147: error: ISO C++ forbids incrementing a pointer of type ‘time_t (*)(time_t*)throw ()’
/usr/include/c++/4.4/bits/stl_algo.h:2148: error: invalid cast to function type ‘time_t(time_t*)throw ()’
/usr/include/c++/4.4/bits/stl_algo.h: In function ‘void std::__heap_select(_RandomAccessIterator, _RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]’:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !