Borderou de evaluare (job #1831303)
Utilizator | Data | 17 decembrie 2016 20:03:44 | |
---|---|---|---|
Problema | Bilete | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:9:16: error: ‘int y1 [10]’ redeclared as different kind of symbol
int x[10],y1[10],y2[10];
^
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/iosfwd:38,
from /usr/include/c++/4.8/ios:38,
from /usr/include/c++/4.8/istream:38,
from /usr/include/c++/4.8/fstream: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 ‘void rec(int, int)’:
user.cpp:18:33: warning: pointer to a function used in arithmetic [-Wpointer-arith]
xt = x[i]; yt = y1[i];
^
user.cpp:18:33: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:47:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
y1[niv] = c2;
^
user.cpp:47:17: error: assignment of read-only location ‘*(y1 + ((sizetype)niv))’
y1[niv] = c2;
^
user.cpp:47:17: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !