Borderou de evaluare (job #508413)

Utilizator avatar briana_vasile Briana Vasile briana_vasile IP ascuns
Problemă Vrăji (clasa a 5-a) Compilator c
Rundă Concurs simulare clasa a 5-a Status evaluat
Dată 30 nov. 2019 14:44:49 Scor 0

Raport evaluator

Eroare de compilare: user.c: In function 'main': user.c:28:5: error: 'r' undeclared (first use in this function) user.c:28:5: note: each undeclared identifier is reported only once for each function it appears in user.c:7:32: warning: unused variable 's' [-Wunused-variable] user.c:6:17: warning: unused variable 'fout' [-Wunused-variable] user.c: At top level: user.c:34:5: warning: data definition has no type or storage class [enabled by default] user.c:34:5: warning: type defaults to 'int' in declaration of 'fout' [-Wimplicit-int] user.c:34:12: warning: initialization makes integer from pointer without a cast [enabled by default] user.c:34:5: error: initializer element is not constant user.c:36:5: warning: data definition has no type or storage class [enabled by default] user.c:36:5: warning: type defaults to 'int' in declaration of 'i' [-Wimplicit-int] user.c:37:19: error: expected ')' before string constant user.c:39:5: warning: data definition has no type or storage class [enabled by default] user.c:39:5: warning: type defaults to 'int' in declaration of 'd' [-Wimplicit-int] user.c:41:5: warning: data definition has no type or storage class [enabled by default] user.c:41:5: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] user.c:41:5: warning: parameter names (without types) in function declaration [enabled by default] user.c:42:5: warning: data definition has no type or storage class [enabled by default] user.c:42:5: warning: type defaults to 'int' in declaration of 'fclose' [-Wimplicit-int] user.c:42:5: warning: parameter names (without types) in function declaration [enabled by default] user.c:43:5: error: expected identifier or '(' before 'return' user.c:44:1: error: expected identifier or '(' before '}' token user.c: In function 'main': user.c:10:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] user.c:12:11: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] user.c:18:15: warning: ignoring return value of 'fscanf', declared with attribute warn_unused_result [-Wunused-result] user.c:32:5: warning: control reaches end of non-void function [-Wreturn-type]