Borderou de evaluare (job #2711057)
Utilizator | Data | 23 februarie 2021 17:13:34 | |
---|---|---|---|
Problema | Camionas | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:12:17: error: the value of 'n' is not usable in a constant expression
bitset <n + 1> viz;
^
main.cpp:9:9: note: 'int n' is not const
int n, m, g;
^
main.cpp:12:18: error: the value of 'n' is not usable in a constant expression
bitset <n + 1> viz;
^
main.cpp:9:9: note: 'int n' is not const
int n, m, g;
^
main.cpp:12:18: note: in template argument for type 'long unsigned int'
bitset <n + 1> viz;
^
main.cpp:23:10: error: invalid types 'int[int]' for array subscript
viz[1] = 1;
^
main.cpp:27:16: error: invalid types 'int[int]' for array subscript
viz[nod] = 1;
^
main.cpp:34:29: error: invalid types 'int[int]' for array subscript
if (viz[it.first]) continue;
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !