Borderou de evaluare (job #1967732)
Utilizator | Data | 17 aprilie 2017 00:00:13 | |
---|---|---|---|
Problema | Elmer | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘void sweep()’:
user.cpp:115:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (p < pos.size() && pos[p].x <= coord[i])
^
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/stdc++.h:64,
from user.cpp:1:
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = Coord*; _Tp = Coord]’:
/usr/include/c++/4.8/bits/stl_algo.h:2307:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = Coord*]’
/usr/include/c++/4.8/bits/stl_algo.h:2338:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = Coord*; _Size = int]’
/usr/include/c++/4.8/bits/stl_algo.h:5475:36: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = Coord*]’
user.cpp:55:32: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2269:19: error: passing ‘const Coord’ as ‘this’ argument of ‘bool Coord::operator<(const Coord&)’ discards qualifiers [-fpermissive]
while (__pivot < *__last)
^
/usr/include/c++/4.8/bits/stl_algo.h: In instantiation of ‘_RandomAccessIterator std::__unguarded_partition(_RandomAccessIterator, _RandomAccessIterator, const _Tp&) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Coord*, std::vector<Coord> >; _Tp = Coord]’:
/usr/include/c++/4.8/bits/stl_algo.h:2307:70: required from ‘_RandomAccessIterator std::__unguarded_partition_pivot(_RandomAccessIterator, _RandomAccessIterator) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Coord*, std::vector<Coord> >]’
/usr/include/c++/4.8/bits/stl_algo.h:2338:54: required from ‘void std::__introsort_loop(_RandomAccessIterator, _RandomAccessIterator, _Size) [with _RandomAccessIterator = __gnu_cxx::__normal_iterator<Coord*, std::vector<Coord> >; _Size = int]’
/usr/include/c++/4.8/bits/stl_algo.h:5475:36: required from ‘void std::sort(_RAIter, _RAIter) [with _RAIter = __gnu_cxx::__normal_iterator<Coord*, std::vector<Coord> >]’
user.cpp:107:32: required from here
/usr/include/c++/4.8/bits/stl_algo.h:2269:19: error: passing ‘const Coord’ as ‘this’ argument of ‘bool Coord::operator<(const Coord&)’ discards qualifiers [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:127:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:130:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &duck[i].x, &duck[i].y);
^
user.cpp:133:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:136:51: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &wall[i].x, &wall[i].y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !