Borderou de evaluare (job #781648)

Utilizator avatar Nico179 Lazarescu Maria-Anastasia Nico179 IP ascuns
Problemă Aritmetica2 (clasa a 5-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 9 iul. 2024 09:32:53 Scor 0

Raport evaluator

Eroare de compilare: main.c: In function 'main': main.c:7:8: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 7 | printf(a,b,c); | ^ | | | int In file included from /usr/include/stdio.h:980, from main.c:1: /usr/include/bits/stdio2.h:84:32: note: expected 'const char * restrict' but argument is of type 'int' 84 | printf (const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:8:7: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion] 8 | scanf(a,b,c); | ^ | | | int /usr/include/stdio.h:428:42: note: expected 'const char * restrict' but argument is of type 'int' 428 | extern int scanf (const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:9:5: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 9 | if (b=0) { | ^ main.c:10:11: warning: passing argument 1 of 'printf' makes pointer from integer without a cast [-Wint-conversion] 10 | printf(a+c); | ~^~ | | | int /usr/include/bits/stdio2.h:84:32: note: expected 'const char * restrict' but argument is of type 'int' 84 | printf (const char *__restrict __fmt, ...) | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ main.c:13:9: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 13 | if (b=1) { | ^ main.c:14:12: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion] 14 | scanf(a-c); | ~^~ | | | int /usr/include/stdio.h:428:42: note: expected 'const char * restrict' but argument is of type 'int' 428 | extern int scanf (const char *__restrict __format, ...) __wur; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:17:1: error: 'else' without a previous 'if' 17 | else { | ^~~~ main.c:18:13: warning: suggest parentheses around assignment used as truth value [-Wparentheses] 18 | if (b=2) { | ^ main.c:19:12: warning: passing argument 1 of 'scanf' makes pointer from integer without a cast [-Wint-conversion] 19 | scanf(a*c); | ~^~