Borderou de evaluare (job #356922)
Utilizator | Data | 17 octombrie 2009 16:55:50 | |
---|---|---|---|
Problema | Mst | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:13: error: 'double time [16384]' redeclared as different kind of symbol
/usr/include/time.h:187: error: previous declaration of 'time_t time(time_t*)'
user.cpp: In function 'void solve(int, int, int)':
user.cpp:35: error: pointer to a function used in arithmetic
user.cpp:35: error: assignment of read-only location
user.cpp:35: error: cannot convert 'double' to 'time_t ()(time_t*)' in assignment
user.cpp:37: error: pointer to a function used in arithmetic
user.cpp:37: error: assignment of read-only location
user.cpp:37: error: cannot convert 'double' to 'time_t ()(time_t*)' in assignment
user.cpp:38: error: pointer to a function used in arithmetic
user.cpp:38: error: assignment of read-only location
user.cpp:38: error: cannot convert 'double' to 'time_t ()(time_t*)' in assignment
user.cpp:41: error: pointer to a function used in arithmetic
user.cpp:41: error: assignment of read-only location
user.cpp:41: error: cannot convert 'double' to 'time_t ()(time_t*)' in assignment
user.cpp: In function 'void solve()':
user.cpp:94: error: pointer to a function used in arithmetic
user.cpp:94: error: pointer to a function used in arithmetic
user.cpp:94: error: pointer to a function used in arithmetic
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:99: error: pointer to a function used in arithmetic
user.cpp:100: error: pointer to a function used in arithmetic
user.cpp:100: error: pointer to a function used in arithmetic
user.cpp:100: error: assignment of read-only location
user.cpp:100: error: cannot convert 'time_t ()(time_t*)' to 'time_t ()(time_t*)' in assignment
user.cpp:103: error: pointer to a function used in arithmetic
user.cpp:103: error: pointer to a function used in arithmetic
user.cpp:103: error: pointer to a function used in arithmetic
user.cpp:103: error: assignment of function 'time_t time(time_t*)'
user.cpp:103: error: cannot convert 'time_t (*)(time_t*)throw ()' to 'time_t ()(time_t*)throw ()' in assignment
user.cpp:104: error: pointer to a function used in arithmetic
user.cpp:104: error: pointer to a function used in arithmetic
user.cpp:104: error: pointer to a function used in arithmetic
user.cpp:104: error: pointer to a function used in arithmetic
user.cpp:104: error: assignment of read-only location
user.cpp:104: error: cannot convert 'time_t (*)(time_t*)throw ()' to 'time_t ()(time_t*)' in assignment
user.cpp:108: error: pointer to a function used in arithmetic
user.cpp:108: error: pointer to a function used in arithmetic
user.cpp:108: error: pointer to a function used in arithmetic
user.cpp:108: error: invalid operands of types 'time_t ()(time_t*)' and 'time_t ()(time_t*)' to binary 'operator+'
user.cpp:112: error: pointer to a function used in arithmetic
user.cpp:112: error: pointer to a function used in arithmetic
user.cpp:112: error: pointer to a function used in arithmetic
user.cpp:112: error: invalid operands of types 'time_t ()(time_t*)' and 'time_t ()(time_t*)' to binary 'operator+'
/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:94: 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 ()]'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !