Borderou de evaluare (job #1951805)
Utilizator | Data | 3 aprilie 2017 20:03:47 | |
---|---|---|---|
Problema | Aiacuhexagoane | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:43: error: ‘int y1’ redeclared as different kind of symbol
int n, i, x, j, nr, m, c, h1, h2, x1, x2, y1, y2, q, cu1, cu2, k;
^
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 ‘int main()’:
user.cpp:29:50: error: assignment of function ‘double y1(double)’
if (h1 % (2*m-1) <= m && h1 % (2*m-1) > 0) y1 = h1 % (2*m-1);
^
user.cpp:29:50: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:30:29: error: assignment of function ‘double y1(double)’
if (h1 % (2*m-1) > m) y1 = h1 % (2*m-1)-m;
^
user.cpp:30:29: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:31:30: error: assignment of function ‘double y1(double)’
if (h1 % (2*m-1) == 0) y1 = m-1;
^
user.cpp:31:30: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:39:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 1) cu1 = 1;
^
user.cpp:40:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 2) cu1 = 2;
^
user.cpp:41:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 0) cu1 = 3;
^
user.cpp:45:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 1) cu1 = 3;
^
user.cpp:46:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 2) cu1 = 1;
^
user.cpp:47:13: error: invalid operands of types ‘double(double)throw ()’ and ‘int’ to binary ‘operator%’
if (y1 % 3 == 0) cu1 = 2;
^
user.cpp:63:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (x1 % 2 == 1 && (y1 == 1 || y1 == m) && (y2 == 2 || y2 == m) && abs(x1-x2 == 2)) k = 0;
^
user.cpp:63:40: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if (x1 % 2 == 1 && (y1 == 1 || y1 == m) && (y2 == 2 || y2 == m) && abs(x1-x2 == 2)) k = 0;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !