Borderou de evaluare (job #2699083)

Utilizator stefdascalescuStefan Dascalescu stefdascalescu Data 23 ianuarie 2021 17:29:34
Problema Caps Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void precalculare()': main.cpp:51:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < s.size(); ++i) ~~^~~~~~~~~~ main.cpp:53:21: warning: array subscript has type 'char' [-Wchar-subscripts] ++fv[0][s[i]]; ^ main.cpp:58:7: error: 'j' was not declared in this scope fr[j][s[i] - 'A']++, fr2[j][26 + s[i] - 'A'++; ^ main.cpp:58:47: error: lvalue required as increment operand fr[j][s[i] - 'A']++, fr2[j][26 + s[i] - 'A'++; ^~ main.cpp:58:49: error: expected ']' before ';' token fr[j][s[i] - 'A']++, fr2[j][26 + s[i] - 'A'++; ^ main.cpp:60:7: error: 'j' was not declared in this scope fr[j][26 + s[i] - 'A']++, fr2[j][s[i] - 'A'++; ^ main.cpp:60:47: error: lvalue required as increment operand fr[j][26 + s[i] - 'A']++, fr2[j][s[i] - 'A'++; ^~ main.cpp:60:49: error: expected ']' before ';' token fr[j][26 + s[i] - 'A']++, fr2[j][s[i] - 'A'++; ^ main.cpp: In function 'void divide2(char)': main.cpp:85:24: warning: array subscript has type 'char' [-Wchar-subscripts] litere += fv[p2][lit], n = n - k2, ++inv; ^ main.cpp:87:24: warning: array subscript has type 'char' [-Wchar-subscripts] litere += fv[p2][lit] + fv[p2][schimba(lit)], n = n - 2 * k2, ++inv; ^ main.cpp:89:24: warning: array subscript has type 'char' [-Wchar-subscripts] litere += fv[p2][lit] + 2 * fv[p2][schimba(lit)], n = n - 3 * k2; ^ Non zero exit status: 1

Ceva nu functioneaza?