Borderou de evaluare (job #2157502)
Utilizator | Data | 9 martie 2018 17:55:49 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:4:33: error: ‘int log [100001]’ redeclared as different kind of symbol
int r[MAXN][17],v[MAXN],log[MAXN];
^
In file included from /usr/include/features.h:367:0,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/5/32/bits/c++config.h:482,
from /usr/include/c++/5/cstdio:41,
from user.cpp:1:
/usr/include/bits/mathcalls.h:109:1: note: previous declaration ‘double log(double)’
__MATHCALL_VEC (log,, (_Mdouble_ __x));
^
user.cpp: In function ‘int main()’:
user.cpp:21:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[i]=1+log[i>>1];
^
user.cpp:21:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[i]=1+log[i>>1];
^
user.cpp:21:26: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:21:15: error: assignment of read-only location ‘*(log + ((sizetype)i))’
log[i]=1+log[i>>1];
^
user.cpp:21:15: error: cannot convert ‘double (*)(double) throw ()’ to ‘double(double) throw ()’ in assignment
user.cpp:25:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
l=log[b-a+1];
^
user.cpp:25:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
user.cpp:25:20: error: invalid conversion from ‘double (*)(double) throw ()’ to ‘int’ [-fpermissive]
user.cpp:11:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&n,&m);
^
user.cpp:13:31: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d",&v[i]);
^
user.cpp:24:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&a,&b);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !