Borderou de evaluare (job #1634083)
Utilizator | Data | 6 martie 2016 13:18:03 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:16: error: ‘int y0’ redeclared as different kind of symbol
int n,m,p,x0=1,y0=1;
^
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 ‘int main()’:
user.cpp:49:15: error: ISO C++ forbids decrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y0--;
^
user.cpp:49:15: error: lvalue required as decrement operand
user.cpp:67:21: warning: pointer to a function used in arithmetic [-Wpointer-arith]
A[i+y0][j+x0]=1;
^
user.cpp:67:23: error: invalid types ‘char [210][210][double (*)(double)throw ()]’ for array subscript
A[i+y0][j+x0]=1;
^
user.cpp:68:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
l=2*n-1+y0;
^
user.cpp:68:13: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:68:12: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
l=2*n-1+y0;
^
user.cpp:24:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("colaj.in","r",stdin);
^
user.cpp:25:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("colaj.out","w",stdout);
^
user.cpp:27:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d",&n,&m,&p);
^
user.cpp:29:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d%d",&a,&b,&c,&d);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !