Borderou de evaluare (job #654140)

Utilizator avatar Radu_Vasile Vasile Radu cont fraudulent Radu_Vasile IP ascuns
Problemă Apropiate (clasa a 6-a) Compilator c-32
Rundă Tabara Nerdvana 2022 - Ziua 1 cls 6 Status evaluat
Dată 4 iul. 2022 11:53:28 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:7:43: warning: variable 'ca' set but not used [-Wunused-but-set-variable] 7 | int n, c, a, d, i, prim, x1, x2, min, ca; | ^~ main.c:7:38: warning: unused variable 'min' [-Wunused-variable] 7 | int n, c, a, d, i, prim, x1, x2, min, ca; | ^~~ main.c:7:34: warning: unused variable 'x2' [-Wunused-variable] 7 | int n, c, a, d, i, prim, x1, x2, min, ca; | ^~ main.c:7:30: warning: unused variable 'x1' [-Wunused-variable] 7 | int n, c, a, d, i, prim, x1, x2, min, ca; | ^~ main.c: At top level: main.c:35:13: warning: data definition has no type or storage class 35 | x1 = a; | ^~ main.c:35:13: warning: type defaults to 'int' in declaration of 'x1' [-Wimplicit-int] main.c:35:18: error: 'a' undeclared here (not in a function) 35 | x1 = a; | ^ main.c:36:13: warning: data definition has no type or storage class 36 | a = ca; | ^ main.c:36:13: warning: type defaults to 'int' in declaration of 'a' [-Wimplicit-int] main.c:36:17: error: 'ca' undeclared here (not in a function); did you mean 'a'? 36 | a = ca; | ^~ | a main.c:37:13: warning: data definition has no type or storage class 37 | prim = 0; | ^~~~ main.c:37:13: warning: type defaults to 'int' in declaration of 'prim' [-Wimplicit-int] main.c:38:13: warning: data definition has no type or storage class 38 | d = 3; | ^ main.c:38:13: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] main.c:39:13: error: expected identifier or '(' before 'while' 39 | while(prim == 0){ | ^~~~~ main.c:46:13: warning: data definition has no type or storage class 46 | x2 = a; | ^~ main.c:46:13: warning: type defaults to 'int' in declaration of 'x2' [-Wimplicit-int] main.c:46:18: error: initializer element is not constant 46 | x2 = a; | ^ main.c:47:13: warning: data definition has no type or storage class 47 | a = ca; | ^