Borderou de evaluare (job #585912)
Utilizator | Data | 30 aprilie 2011 12:39:09 | |
---|---|---|---|
Problema | Fabrica | Status | done |
Runda | Algoritmiada 2011, Runda Finală, Clasele 10-12 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:25: error: 'int time [100005]' 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:55: error: pointer to a function used in arithmetic
user.cpp:55: error: assignment of read-only location
user.cpp:55: error: cannot convert 'int' to 'time_t ()(time_t*)' in assignment
user.cpp:59: error: pointer to a function used in arithmetic
user.cpp:59: error: pointer to a function used in arithmetic
user.cpp:59: error: pointer to a function used in arithmetic
user.cpp:64: error: pointer to a function used in arithmetic
user.cpp:64: error: ISO C++ forbids comparison between pointer and integer
user.cpp:64: error: pointer to a function used in arithmetic
user.cpp:64: error: pointer to a function used in arithmetic
user.cpp:64: error: invalid conversion from 'time_t (*)(time_t*)throw ()' to 'int'
/usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]':
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2829: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.2/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.2/bits/stl_algo.h:2829: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2742: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.2/bits/stl_algo.h:2829: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2758: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.2/bits/stl_algo.h:2758: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h:2758: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h:2829: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2758: error: invalid cast to function type 'time_t ()(time_t*)throw ()'
/usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]':
/usr/include/c++/4.2/bits/stl_algo.h:2831: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2436: error: ISO C++ forbids using pointer to a function in subtraction
/usr/include/c++/4.2/bits/stl_algo.h:2438: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h:2831: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2439: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h: In function 'void std::__insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]':
/usr/include/c++/4.2/bits/stl_algo.h:2438: instantiated from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
/usr/include/c++/4.2/bits/stl_algo.h:2831: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2352: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h:2352: error: ISO C++ forbids incrementing a pointer of type 'time_t (*)(time_t*)throw ()'
/usr/include/c++/4.2/bits/stl_algo.h:2355: error: variable '__val' has function type
/usr/include/c++/4.2/bits/stl_algo.h:2355: error: variable '__val' has function type
/usr/include/c++/4.2/bits/stl_algo.h:2358: error: pointer to a function used in arithmetic
/usr/include/c++/4.2/bits/stl_algo.h:2438: instantiated from 'void std::__final_insertion_sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
/usr/include/c++/4.2/bits/stl_algo.h:2831: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = time_t (*)(time_t*)throw ()]'
user.cpp:59: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:2355: error: variable '__val' has function type
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !