Borderou de evaluare (job #713939)

Utilizator avatar Alex__balan Alexandru balan Alex__balan IP ascuns
Problemă Roua (clasa a 5-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 31 mar. 2023 10:44:58 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:19:53: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 19 | while(v[i+1]='r') | ~~~~~~^~~~ main.cpp:51:25: error: 'x' was not declared in this scope 51 | x=2*a+r; | ^ main.cpp:52:35: error: expected ')' before ';' token 52 | while(x!=0;){ | ~ ^ | ) main.cpp:52:25: warning: this 'while' clause does not guard... [-Wmisleading-indentation] 52 | while(x!=0;){ | ^~~~~ main.cpp:52:36: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while' 52 | while(x!=0;){ | ^ main.cpp:52:36: error: expected primary-expression before ')' token main.cpp:62:48: error: 'ct' was not declared in this scope; did you mean 'c'? 62 | x=v[j]+ct; | ^~ | c main.cpp:69:46: warning: array subscript has type 'char' [-Wchar-subscripts] 69 | v[v[0]]=ct; | ~~~^ main.cpp:69:49: error: 'ct' was not declared in this scope; did you mean 'c'? 69 | v[v[0]]=ct; | ^~ | c