Borderou de evaluare (job #1500932)
Utilizator | Data | 12 octombrie 2015 21:36:17 | |
---|---|---|---|
Problema | Rays | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&, _Compare) [with _RandomAccessIterator = LINE*; _Tp = LINE; _Compare = bool (*)(LINE&, LINE&)]’:
/usr/include/c++/4.8/bits/stl_algo.h:2319:78: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator, _Compare) [with _RandomAccessIterator = LINE*; _Compare = bool (*)(LINE&, LINE&)]’
/usr/include/c++/4.8/bits/stl_algo.h:2360:62: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size, _Compare) [with _RandomAccessIterator = LINE*; _Size = int; _Compare = bool (*)(LINE&, LINE&)]’
/usr/include/c++/4.8/bits/stl_algo.h:5513:44: required from ‘void std::sort(_RAIter, _RAIter, _Compare) [with _RAIter = LINE*; _Compare = bool (*)(LINE&, LINE&)]’
user.cpp:58:38: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2287:35: error: invalid initialization of reference of type ‘LINE&’ from expression of type ‘const LINE’
while (__comp(*__first, __pivot))
^
/usr/include/c++/4.8/bits/stl_algo.h:2290:34: error: invalid initialization of reference of type ‘LINE&’ from expression of type ‘const LINE’
while (__comp(__pivot, *__last))
^
user.cpp: In function ‘int main()’:
user.cpp:31:22: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &N);
^
user.cpp:36:23: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &x);
^
user.cpp:37:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &y1);
^
user.cpp:38:24: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(in, "%d", &y2);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !