Borderou de evaluare (job #2071175)
Utilizator | Data | 20 noiembrie 2017 14:12:24 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:10:19: error: ‘int j1’ redeclared as different kind of symbol
int n, m, i1, i2, j1, j2, nr, i;
^
In file included from /usr/include/features.h:357:0,
from /usr/include/i386-linux-gnu/c++/4.8/bits/os_defines.h:39,
from /usr/include/i386-linux-gnu/c++/4.8/bits/c++config.h:420,
from /usr/include/c++/4.8/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘void build(int, int, int)’:
user.cpp:24:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<a[s].size()&&j<a[d].size())
^
user.cpp:24:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<a[s].size()&&j<a[d].size())
^
user.cpp:37:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;i<a[s].size();i++)
^
user.cpp:40:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(;j<a[d].size();j++)
^
user.cpp: In function ‘void query(int, int, int)’:
user.cpp:53:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(v[a[nod][mid]].y>=j1)
^
user.cpp: In function ‘int main()’:
user.cpp:90:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
fin>>i1>>j1>>i2>>j2;
^
In file included from /usr/include/c++/4.8/fstream:38:0,
from user.cpp:1:
/usr/include/c++/4.8/istream:872:5: error: initializing argument 1 of ‘std::basic_istream<_CharT, _Traits>& std::operator>>(std::basic_istream<_CharT, _Traits>&&, _Tp&) [with _CharT = char; _Traits = std::char_traits<char>; _Tp = double(double)throw ()]’
operator>>(basic_istream<_CharT, _Traits>&& __is, _Tp& __x)
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !