Borderou de evaluare (job #1530849)
Utilizator | Data | 21 noiembrie 2015 12:57:09 | |
---|---|---|---|
Problema | Por Costel și Trenul | Status | done |
Runda | FMI No Stress 6 | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:7:11: error: ‘int j1’ redeclared as different kind of symbol
int x,i,j,j1,m,M,n,S[100001];
^
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:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:43:11: error: assignment of function ‘double j1(double)’
j=1;j1=1;
^
user.cpp:43:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:49:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(j1<=i)
^
user.cpp:50:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
for(;j1<=i;j1++)
^
user.cpp:50:30: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
for(;j1<=i;j1++)
^
user.cpp:50:30: error: lvalue required as increment operand
user.cpp:51:26: error: invalid types ‘int [100001][double(double)throw ()]’ for array subscript
out<<S[j1]<<"\n";
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !