Borderou de evaluare (job #1605882)
Utilizator | Data | 19 februarie 2016 16:03:32 | |
---|---|---|---|
Problema | Arbsat | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:20:16: error: ‘int y1’ redeclared as different kind of symbol
int n, x1, x2, y1, 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/cstdio:41,
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 ‘int query(int, int, int, int, int)’:
user.cpp:104:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (f1 >= 0 && f1 < aint [node].v.size () && aint [node].v [f1].y < y1)
^
user.cpp:104:80: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (f1 >= 0 && f1 < aint [node].v.size () && aint [node].v [f1].y < y1)
^
user.cpp: In function ‘int main()’:
user.cpp:180:16: error: assignment of function ‘double y1(double)’
y1 = P [i].y;
^
user.cpp:180:16: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:193:15: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y1++; y2 --;
^
user.cpp:193:15: error: lvalue required as increment operand
user.cpp:198:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 > y2)
^
user.cpp:209:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (aint [1].v [m].y >= y1) {
^
user.cpp:246:16: error: assignment of function ‘double y1(double)’
y1 = P [i].y;
^
user.cpp:246:16: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:259:15: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y1++; y2 --;
^
user.cpp:259:15: error: lvalue required as increment operand
user.cpp:264:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (y1 > y2)
^
user.cpp:274:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (aint [1].v [m].y >= y1) {
^
user.cpp:136:12: warning: unused variable ‘xx2’ [-Wunused-variable]
int i, xx2, st, dr, m, f1, f2, ans, T, t;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !