Borderou de evaluare (job #2024437)
Utilizator | Data | 20 septembrie 2017 17:53:33 | |
---|---|---|---|
Problema | Take 5 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:16:43: error: ‘int y0’ redeclared as different kind of symbol
int X, Y, p1, p2, q1, q2, sum, frecv, x0, y0;
^
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:242:1: error: previous declaration of ‘double y0(double)’
__MATHCALL (y0,, (_Mdouble_));
^
user.cpp: In function ‘void solve(int)’:
user.cpp:39:8: error: assignment of function ‘double y0(double)’
y0 = 0;
^
user.cpp:39:8: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:41:13: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y[y0++] = v[k] + v[i];
^
user.cpp:41:13: error: lvalue required as increment operand
user.cpp:42:22: error: invalid operands of types ‘int [1000]’ and ‘double(double)throw ()’ to binary ‘operator+’
std::sort(y, y + y0);
^
user.cpp:44:52: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
X = 0, Y = 0, p1 = 0, p2 = 0, q1 = Q, q2 = Q - y0, sum = 0, frecv = 0;
^
user.cpp:46:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (Y < y0 && q1 < O) {
^
user.cpp:54:29: error: invalid operands of types ‘int [500000]’ and ‘double(double)throw ()’ to binary ‘operator+’
memmove(a + q2, a + y0 + q2 - Y, sizeof (int) * (q1 + Y - y0 - q2));
^
user.cpp:54:67: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
memmove(a + q2, a + y0 + q2 - Y, sizeof (int) * (q1 + Y - y0 - q2));
^
user.cpp:55:23: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
q2 = q1 + Y - y0;
^
user.cpp:62:16: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
while (Y < y0) {
^
user.cpp:75:25: error: invalid operands of types ‘int [500000]’ and ‘double(double)throw ()’ to binary ‘operator+’
memmove(a + q2, a + y0 + q2 - Y, sizeof (int) * (q1 + Y - y0 - q2));
^
user.cpp:75:63: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
memmove(a + q2, a + y0 + q2 - Y, sizeof (int) * (q1 + Y - y0 - q2));
^
user.cpp:76:19: error: invalid operands of types ‘int’ and ‘double(double)throw ()’ to binary ‘operator-’
q2 = q1 + Y - y0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !