Borderou de evaluare (job #1861173)
Utilizator | Data | 28 ianuarie 2017 17:46:08 | |
---|---|---|---|
Problema | Colaj | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:57: error: ‘int y0’ redeclared as different kind of symbol
int n, m, p, x[205], y[205], mat[205][205], nr, mr, 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/utility:68,
from /usr/include/c++/4.8/algorithm:60,
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:85:11: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y0++;
^
user.cpp:85:11: error: lvalue required as increment operand
user.cpp:89:11: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
y0++;
^
user.cpp:89:11: error: lvalue required as increment operand
user.cpp:91:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
mr=2*n-1+y0;
^
user.cpp:91:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:91:13: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
mr=2*n-1+y0;
^
user.cpp:65:36: 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:66:38: 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:68:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n%d%d\n", &n, &p, &m);
^
user.cpp:71:83: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d\n", &drept[i].a, &drept[i].b, &drept[i].c, &drept[i].d);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !