Borderou de evaluare (job #1988026)

Utilizator Alexandra_MMihaila Alexandra Alexandra_M Data 1 iunie 2017 21:36:37
Problema Coduri Huffman Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:9:1: error: expected ‘,’ or ‘;’ before ‘struct’ struct element ^ user.cpp:12:2: error: ‘sol’ does not name a type }sol[1000001]; ^ user.cpp: In function ‘void conversie(char*, int)’: user.cpp:36:5: error: ‘sol’ was not declared in this scope sol[i].nr_b10 = rez; ^ user.cpp: In function ‘void RSD(nod*, int&, char*, char*)’: user.cpp:51:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] RSD(arb->stang,s,cod_nou,"0"); ^ user.cpp:52:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] RSD(arb->drept,s,cod_nou,"1"); ^ user.cpp: In function ‘int main()’: user.cpp:85:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] RSD(aux[0]->stang, s1, "","0"); ^ user.cpp:85:34: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] user.cpp:87:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] RSD(aux[0]->drept, s2,"","1"); ^ user.cpp:87:33: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] user.cpp:91:17: error: ‘sol’ was not declared in this scope fout << sol[i].lg << ' ' << sol[i].nr_b10 << '\n'; ^

Ceva nu functioneaza?