Borderou de evaluare (job #604661)

Utilizator avatar VladNegut Vlad Negut VladNegut IP ascuns
Problemă Plaja 2 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 25 aug. 2021 14:36:24 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:12:18: error: expected ')' before string constant 12 | fscanf(in "%d", &x) | ^~~~~ | ) main.c:12:9: error: too few arguments to function 'fscanf' 12 | fscanf(in "%d", &x) | ^~~~~~ In file included from /usr/include/features.h:473, from /usr/include/bits/libc-header-start.h:33, from /usr/include/stdio.h:27, from main.c:1: /usr/include/stdio.h:410:12: note: declared here 410 | extern int __REDIRECT (fscanf, (FILE *__restrict __stream, | ^~~~~~~~~~ main.c:12:28: error: expected ';' before 'if' 12 | fscanf(in "%d", &x) | ^ | ; 13 | if(i==1) | ~~ main.c:19:15: error: 'r' undeclared (first use in this function); did you mean 'sr'? 19 | x=r; | ^ | sr main.c:19:15: note: each undeclared identifier is reported only once for each function it appears in main.c:8:17: warning: variable 'sr' set but not used [-Wunused-but-set-variable] 8 | int n,i=0,x,sr=0,cmmdc; | ^~ main.c:9:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 9 | fscanf(in, "%d", &n); | ^~~~~~~~~~~~~~~~~~~~