Borderou de evaluare (job #3223344)

Utilizator BacriuiulianaBacriu Iuliana-Maria Bacriuiuliana Data 13 aprilie 2024 10:41:56
Problema Tenis Status done
Runda Universitatea Tehnică din Cluj-Napoca - 2024 - Concurs Compilator c-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.c: In function 'main': main.c:32:22: warning: passing argument 1 of 'fprintf' from incompatible pointer type [-Wincompatible-pointer-types] 32 | else fprintf("%llu",tenis(n,a,b,m,i,rez)%n); | ^~~~~~ | | | char * In file included from main.c:1: /usr/include/stdio.h:350:38: note: expected 'FILE * restrict' but argument is of type 'char *' 350 | extern int fprintf (FILE *__restrict __stream, | ~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:32:49: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast [-Wint-conversion] 32 | else fprintf("%llu",tenis(n,a,b,m,i,rez)%n); | ~~~~~~~~~~~~~~~~~~~~^~ | | | long unsigned int /usr/include/stdio.h:351:44: note: expected 'const char * restrict' but argument is of type 'long unsigned int' 351 | const char *__restrict __format, ...); | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ main.c:25:18: warning: unused variable 'i' [-Wunused-variable] 25 | int t,n,a,b,i,m; | ^ main.c:24:37: warning: '__builtin_memset' writing 24000 bytes into a region of size 12000 [-Wstringop-overflow=] 24 | for(int i=0; i<3000; i++) rez[i]=0; | ~~~~~~^~ main.c:22:28: note: destination object of size 12000 allocated by 'malloc' 22 | long unsigned int *rez=malloc(3000*sizeof(int)); | ^~~~~~~~~~~~~~~~~~~~~~~~
Test Timp executie Memorie folosita Mesaj Punctaj/test
13ms409kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?