Borderou de evaluare (job #3201735)
Utilizator | Data | 9 februarie 2024 17:56:08 | |
---|---|---|---|
Problema | Paduri de multimi disjuncte | Status | done |
Runda | Arhiva educationala | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:14:59: error: expected ';' before 'fout'
14 | if(vt[x]==vt[y]&&vt[x]&&((vt[x]==y||vt[y]==x))
| ^
| ;
15 | fout<<"DA"<<'\n';
| ~~~~
main.cpp:14:35: warning: statement has no effect [-Wunused-value]
14 | if(vt[x]==vt[y]&&vt[x]&&((vt[x]==y||vt[y]==x))
| ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:16:13: error: expected primary-expression before 'else'
16 | else fout<<"NU"<<'\n';
| ^~~~
main.cpp:15:30: error: expected ')' before 'else'
15 | fout<<"DA"<<'\n';
| ^
| )
16 | else fout<<"NU"<<'\n';
| ~~~~
main.cpp:14:15: note: to match this '('
14 | if(vt[x]==vt[y]&&vt[x]&&((vt[x]==y||vt[y]==x))
| ^
main.cpp:13:11: warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]
13 | if(c==2)
| ^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !