Borderou de evaluare (job #2850559)
Utilizator | Data | 16 februarie 2022 23:26:53 | |
---|---|---|---|
Problema | Floyd-Warshall/Roy-Floyd | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void royfloyd()':
main.cpp:18:5: error: expected initializer before 'for'
18 | for(k=1;k<=n;k++)
| ^~~
main.cpp:18:14: warning: statement has no effect [-Wunused-value]
18 | for(k=1;k<=n;k++)
| ~^~~
main.cpp:18:21: error: expected ';' before ')' token
18 | for(k=1;k<=n;k++)
| ^
| ;
main.cpp:19:18: warning: statement has no effect [-Wunused-value]
19 | for(i=1;i<=n;i++)
| ~^~~
main.cpp:19:25: error: expected ';' before ')' token
19 | for(i=1;i<=n;i++)
| ^
| ;
main.cpp:20:21: error: 'j' was not declared in this scope
20 | for(j=1;j<=n;j++)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !