Borderou de evaluare (job #1582320)
Utilizator | Data | 27 ianuarie 2016 20:36:18 | |
---|---|---|---|
Problema | Radiatie | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:89:13: error: ‘int log [15001]’ redeclared as different kind of symbol
int log[nmax];
^
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from user.cpp:1:
/usr/include/i386-linux-gnu/bits/mathcalls.h:110:1: error: previous declaration of ‘double log(double)’
__MATHCALL (log,, (_Mdouble_ __x));
^
user.cpp: In function ‘void precalc(int)’:
user.cpp:95:10: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[1]=0;
^
user.cpp:95:11: error: assignment of read-only location ‘*(log + 1u)’
log[1]=0;
^
user.cpp:95:11: error: cannot convert ‘int’ to ‘double(double)throw ()’ in assignment
user.cpp:97:14: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[i]=log[i/2]+1;
^
user.cpp:97:23: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[i]=log[i/2]+1;
^
user.cpp:97:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log[i]=log[i/2]+1;
^
user.cpp:97:15: error: assignment of read-only location ‘*(log + ((sizetype)i))’
log[i]=log[i/2]+1;
^
user.cpp:97:15: error: cannot convert ‘double (*)(double)throw ()’ to ‘double(double)throw ()’ in assignment
user.cpp: In function ‘int lca(int, int)’:
user.cpp:104:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log1=log[lvl[x]];
^
user.cpp:104:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp:105:20: warning: pointer to a function used in arithmetic [-Wpointer-arith]
log2=log[lvl[y]];
^
user.cpp:105:20: error: invalid conversion from ‘double (*)(double)throw ()’ to ‘int’ [-fpermissive]
user.cpp: In function ‘int main()’:
user.cpp:151:34: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d%d",&n,&m,&k);
^
user.cpp:154:61: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d%d",&mv[i].n1,&mv[i].n2,&mv[i].cost);
^
user.cpp:206:33: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin,"%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !