Borderou de evaluare (job #1695429)
Utilizator | Data | 27 aprilie 2016 03:14:12 | |
---|---|---|---|
Problema | Fibocel | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:6:37: error: ‘long long unsigned int j1’ redeclared as different kind of symbol
unsigned long long k,i,m,x,j,ct,ct2,j1,k1,i1,ok,ct1,ct3,k0,k2,i2,k3,j2,pas[132][132],m2;
^
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 ‘void trans(long long unsigned int)’:
user.cpp:12:11: error: assignment of function ‘double j1(double)’
for(j1=0;x!=0;x/=2)
^
user.cpp:12:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:15:15: error: ISO C++ forbids incrementing a pointer of type ‘double (*)(double)throw ()’ [-fpermissive]
j1++;
^
user.cpp:15:15: error: lvalue required as increment operand
user.cpp: In function ‘int main()’:
user.cpp:53:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fibocel.in","r",stdin);
^
user.cpp:54:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("fibocel.out","w",stdout);
^
user.cpp:55:22: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu",&j2);
^
user.cpp:61:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%llu%llu",&m,&x);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !