Borderou de evaluare (job #2977363)
Utilizator | Data | 11 februarie 2023 14:09:13 | |
---|---|---|---|
Problema | Lanterna | 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:80:7: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
80 | if (cost[i] < inf && i != 1) {
| ^~~~
main.cpp:80:15: warning: statement has no effect [-Wunused-value]
80 | if (cost[i] < inf && i != 1) {
| ^
main.cpp:80:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
80 | if (cost[i] < inf && i != 1) {
| ~~~~~^~~~
main.cpp:96:7: warning: init-statement in selection statements only available with '-std=c++17' or '-std=gnu++17'
96 | if (mi == inf)
| ^~
main.cpp:96:10: warning: statement has no effect [-Wunused-value]
96 | if (mi == inf)
| ^
main.cpp:96:16: error: expected primary-expression before ')' token
96 | if (mi == inf)
| ^
main.cpp:80:24: error: label 'i' used but not defined
80 | if (cost[i] < inf && i != 1) {
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !