Borderou de evaluare (job #1705432)
Utilizator | Data | 20 mai 2016 16:29:29 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:17: error: ‘int y1’ redeclared as different kind of symbol
int i,n,q,x1,x2,y1,y2,pos,val,f1,f2,j,var1,var2,p,u,mij,rasp;
^
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/iostream:38,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘void mergebuild(int, int, int)’:
user.cpp:38:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[f1].size()&&j<v[f2].size())
^
user.cpp:38:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i<v[f1].size()&&j<v[f2].size())
^
user.cpp:43:10: warning: statement has no effect [-Wunused-value]
for(i;i<v[f1].size();i++) v[nod].push_back(v[f1][i]);
^
user.cpp:43:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(i;i<v[f1].size();i++) v[nod].push_back(v[f1][i]);
^
user.cpp:44:10: warning: statement has no effect [-Wunused-value]
for(j;j<v[f2].size();j++) v[nod].push_back(v[f2][j]);
^
user.cpp:44:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(j;j<v[f2].size();j++) v[nod].push_back(v[f2][j]);
^
user.cpp: In function ‘void query(int, int, int)’:
user.cpp:63:30: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
var1=binsearch(nod,y1);
^
user.cpp:46:5: error: initializing argument 2 of ‘int binsearch(int, int)’ [-fpermissive]
int binsearch(int a,int val)
^
user.cpp:65:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(v[nod][var1]<y1) var1++;
^
user.cpp: In function ‘int main()’:
user.cpp:94:10: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
f>>x1>>y1>>x2>>y2;
^
In file included from /usr/include/c++/4.8/iostream:40: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 !