Borderou de evaluare (job #3200882)
Utilizator | Data | 5 februarie 2024 23:15:32 | |
---|---|---|---|
Problema | Range minimum query | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:21:16: error: 'int log2 [100002]' redeclared as different kind of entity
21 | int log2[100002];
| ^
In file included from /usr/include/features.h:490,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/os_defines.h:39,
from /usr/include/c++/12.2.1/x86_64-pc-linux-gnu/bits/c++config.h:655,
from /usr/include/c++/12.2.1/iostream:38,
from main.cpp:1:
/usr/include/bits/mathcalls.h:133:1: note: previous declaration 'double log2(double)'
133 | __MATHCALL_VEC (log2,, (_Mdouble_ __x));
| ^~~~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:45:13: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
45 | log2[1] = 0;
| ^
main.cpp:46:14: error: 'i' was not declared in this scope
46 | for (i = 2; i <= n; i++)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !