Borderou de evaluare (job #1718988)
Utilizator | Data | 19 iunie 2016 11:42:21 | |
---|---|---|---|
Problema | Divseq | Status | done |
Runda | Algoritmiada 2016 Runda 4 Juniori | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:5:35: error: ‘long long int j1’ redeclared as different kind of symbol
long long v[250000],m,minim,maxim,j1,j2;
^
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:240:1: error: previous declaration of ‘double j1(double)’
__MATHCALL (j1,, (_Mdouble_));
^
user.cpp: In function ‘int main()’:
user.cpp:29:41: error: assignment of function ‘double j1(double)’
if(!(i!=n && !(v[i]%v[i+1]))) j1=i;
^
user.cpp:29:41: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:30:19: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
for(int j=j1;j>=1;j--)
^
user.cpp:50:11: error: assignment of function ‘double j1(double)’
j1=j2;
^
user.cpp:50:11: error: cannot convert ‘long long int’ to ‘double(double)throw ()’ in assignment
user.cpp:19:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divseq.in","r",stdin);
^
user.cpp:20:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("divseq.out","w",stdout);
^
user.cpp:21:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^
user.cpp:24:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld",&v[i]);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !