Borderou de evaluare (job #820636)

Utilizator avatar Tudor_MD Marin-Diu Tudor Tudor_MD IP ascuns
Problemă Divizori (clasa a 6-a) Compilator c-32
Rundă Arhiva de probleme Status evaluat
Dată 14 apr. 2025 11:36:52 Scor 0

Raport evaluator

Eroare de compilare: main.c:4:17: error: size of array 'c' is too large 4 | int v[1000001], c[99999999999], prime[100000]; | ^ main.c: In function 'main': main.c:70:20: warning: format '%d' expects argument of type 'int', but argument 3 has type 'int *' [-Wformat=] 70 | fprintf(out, "%d\n%d\n%d",&nr4,&max,&nr5); | ~^ ~~~~ | | | | int int * | %n main.c:70:24: warning: format '%d' expects argument of type 'int', but argument 4 has type 'int *' [-Wformat=] 70 | fprintf(out, "%d\n%d\n%d",&nr4,&max,&nr5); | ~^ ~~~~ | | | | int int * | %n main.c:70:28: warning: format '%d' expects argument of type 'int', but argument 5 has type 'int *' [-Wformat=] 70 | fprintf(out, "%d\n%d\n%d",&nr4,&max,&nr5); | ~^ ~~~~ | | | | int int * | %n main.c:10:5: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 10 | fscanf(in, "%d %d ",&n,&k); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ main.c:21:9: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 21 | fscanf(in, "%d ",&v[i]); | ^~~~~~~~~~~~~~~~~~~~~~~