Borderou de evaluare (job #1808651)
Utilizator | Data | 17 noiembrie 2016 22:29:35 | |
---|---|---|---|
Problema | CT | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp:12:19: error: ‘int log [100100]’ redeclared as different kind of symbol
int first[N],log[N],destr[N];
^
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:110:1: error: previous declaration of ‘double log(double)’
__MATHCALL (log,, (_Mdouble_ __x));
^
user.cpp: In function ‘int lca(int, int)’:
user.cpp:90:19: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
lg = log[y-x+1];
^
user.cpp: In function ‘int main()’:
user.cpp:133:14: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
log[i] = log[i/2]+1;
^
user.cpp:133:25: error: invalid types ‘<unresolved overloaded function type>[int]’ for array subscript
log[i] = log[i/2]+1;
^
user.cpp:128:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("CT.in","r",stdin);
^
user.cpp:129:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("CT.out","w",stdout);
^
user.cpp:136:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&T);
^
user.cpp:139:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&n,&q);
^
user.cpp:144:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
user.cpp:154:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d",&x,&y);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !