Borderou de evaluare (job #2002682)
Utilizator | Data | 20 iulie 2017 16:34:00 | |
---|---|---|---|
Problema | Zoo | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:19: error: ‘int y1’ redeclared as different kind of symbol
int puncte,i,m,x1,y1,x2,y2;
^
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:243:1: error: previous declaration of ‘double y1(double)’
__MATHCALL (y1,, (_Mdouble_));
^
user.cpp: In function ‘str update_nod(str, str)’:
user.cpp:17:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < s1.coord.size(); i ++ ){
^
user.cpp:20:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for( int i = 0; i < s2.coord.size(); i ++ ){
^
user.cpp: In function ‘int query(int, int, int, int, int)’:
user.cpp:44:21: warning: unused variable ‘mid’ [-Wunused-variable]
int st, dr, mid;
^
user.cpp: In function ‘int main()’:
user.cpp:80:12: error: cannot bind ‘std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}’ lvalue to ‘std::basic_istream<char>&&’
in >> x1 >> y1 >> x2 >> y2;
^
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)
^
user.cpp:81:36: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
out<< query( 1,x1,y1,x2,y2 )<<"\n";
^
user.cpp:39:5: error: initializing argument 3 of ‘int query(int, int, int, int, int)’ [-fpermissive]
int query( int nod, int x1, int y1, int x2, int y2 ){
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !