Borderou de evaluare (job #2912239)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 7 iulie 2022 15:54:38
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:8:32: error: operands to '?:' have different types 'std::basic_ostream<char>' and 'int' 8 | for(F>>n>>y;F>>n>>y>>z;n==2?G<<(y==z?"DA":"NU")<<'\n':p[z]=y) { | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ main.cpp:9:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation] 9 | for(;p[y];y=p[y]); | ^~~ main.cpp:10:3: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for' 10 | for(;p[z];z=p[z]); | ^~~ Non zero exit status: 1

Ceva nu functioneaza?