Borderou de evaluare (job #2856772)
Utilizator | Data | 24 februarie 2022 11:54:15 | |
---|---|---|---|
Problema | Emacs | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:5:11: error: 'const int log' redeclared as different kind of entity
5 | const int log = 18;
| ^~~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:522,
from /usr/include/c++/10/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:33,
from main.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:104:1: note: previous declaration 'double log(double)'
104 | __MATHCALL_VEC (log,, (_Mdouble_ __x));
| ^~~~~~~~~~~~~~
main.cpp:8:13: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
8 | int rmq[log + 1][nmax + 1];
| ~~~~^~~
main.cpp: In function 'void build_rmq(int)':
main.cpp:21:13: error: 'rmq' was not declared in this scope
21 | rmq[i][j] = max ( rmq[i - 1][j], rmq[i - 1][j + ( 1 << ( i - 1 ) )] );
| ^~~
main.cpp: In function 'int query(int, int)':
main.cpp:27:18: error: 'rmq' was not declared in this scope
27 | return max ( rmq[d][l], rmq[d][r - ( 1 << d ) + 1] );
| ^~~
main.cpp: In function 'int main()':
main.cpp:78:9: error: 'rmq' was not declared in this scope
78 | rmq[0][i] = get ();
| ^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !