Borderou de evaluare (job #379588)
Utilizator | Data | 2 ianuarie 2010 17:19:26 | |
---|---|---|---|
Problema | Desen | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:72:7: warning: no newline at end of file
user.cpp: In function 'int main()':
user.cpp:44: warning: format '%d' expects type 'int*', but argument 2 has type 'short int*'
user.cpp:44: warning: format '%d' expects type 'int*', but argument 3 has type 'short int*'
user.cpp:44: warning: format '%.6lf' expects type 'double', but argument 2 has type 'int'
user.cpp:46: warning: format '%d' expects type 'int*', but argument 2 has type 'short int*'
user.cpp:46: warning: format '%d' expects type 'int*', but argument 3 has type 'short int*'
/usr/include/c++/4.2/bits/stl_algo.h: In function 'const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = int, _Compare = int (*)(int&, int&)]':
/usr/include/c++/4.2/bits/stl_algo.h:2795: instantiated from 'void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = int*, _Size = int, _Compare = int (*)(int&, int&)]'
/usr/include/c++/4.2/bits/stl_algo.h:2866: instantiated from 'void std::sort(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = int*, _Compare = int (*)(int&, int&)]'
user.cpp:53: instantiated from here
/usr/include/c++/4.2/bits/stl_algo.h:125: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
/usr/include/c++/4.2/bits/stl_algo.h:126: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
/usr/include/c++/4.2/bits/stl_algo.h:128: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
/usr/include/c++/4.2/bits/stl_algo.h:132: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
/usr/include/c++/4.2/bits/stl_algo.h:134: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !