Borderou de evaluare (job #2086685)
Utilizator | Data | 12 decembrie 2017 12:47:26 | |
---|---|---|---|
Problema | Elicop | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:14:5: error: ‘int y1’ redeclared as different kind of symbol
int y1;
^
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 ‘bool rez(int)’:
user.cpp:29:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y2 > y1)
^
user.cpp:30:26: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘double (*)(double)throw ()’
schimba(y1,y2);
^
user.cpp:16:6: error: in passing argument 1 of ‘void schimba(int&, int&)’
void schimba(int &a, int &b){
^
user.cpp:33:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(int j = start; j <= y1; j ++){
^
user.cpp:40:16: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y1 --;
^
user.cpp:40:16: error: lvalue required as decrement operand
user.cpp:43:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(y2 > y1)
^
user.cpp:44:26: error: invalid initialization of non-const reference of type ‘int&’ from an rvalue of type ‘double (*)(double)throw ()’
schimba(y1,y2);
^
user.cpp:16:6: error: in passing argument 1 of ‘void schimba(int&, int&)’
void schimba(int &a, int &b){
^
user.cpp:47:25: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(int j = y1; j <= finish+y1; j++){
^
user.cpp:47:41: warning: pointer to a function used in arithmetic [-Wpointer-arith]
for(int j = y1; j <= finish+y1; j++){
^
user.cpp:47:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:74:11: 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>>p;
^
In file included from /usr/include/c++/4.8/iostream:40:0,
from user.cpp:1:
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !