Borderou de evaluare (job #627583)

Utilizator alex23alexandru andronache alex23 Data 30 octombrie 2011 10:48:14
Problema Simetrii Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:48: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result user.cpp:54: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result user.cpp:59: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result 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 ‘const _Tp& std::__median(const _Tp&, const _Tp&, const _Tp&, _Compare) [with _Tp = punct, _Compare = bool (*)(punct&, punct&)]’: /usr/include/c++/4.4/bits/stl_algo.h:2301: instantiated from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = punct*, _Size = int, _Compare = bool (*)(punct&, punct&)]’ /usr/include/c++/4.4/bits/stl_algo.h:5258: instantiated from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = punct*, _Compare = bool (*)(punct&, punct&)]’ user.cpp:63: instantiated from here /usr/include/c++/4.4/bits/stl_algo.h:124: error: invalid initialization of reference of type ‘punct&’ from expression of type ‘const punct’ /usr/include/c++/4.4/bits/stl_algo.h:125: error: invalid initialization of reference of type ‘punct&’ from expression of type ‘const punct’ /usr/include/c++/4.4/bits/stl_algo.h:127: error: invalid initialization of reference of type ‘punct&’ from expression of type ‘const punct’ /usr/include/c++/4.4/bits/stl_algo.h:131: error: invalid initialization of reference of type ‘punct&’ from expression of type ‘const punct’ /usr/include/c++/4.4/bits/stl_algo.h:133: error: invalid initialization of reference of type ‘punct&’ from expression of type ‘const punct’

Ceva nu functioneaza?