Borderou de evaluare (job #1055530)

Utilizator asem_mazurean_ionMazurean Ion asem_mazurean_ion Data 14 decembrie 2013 11:33:48
Problema Pufu Status done
Runda ONIS 2014, Runda 1 Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:8:5: warning: format ‘%u’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘long unsigned int *’ [-Wformat=] fscanf(f,"%u",&t); ^ user.c:9:5: warning: format ‘%u’ expects argument of type ‘unsigned int *’, but argument 3 has type ‘long unsigned int *’ [-Wformat=] fscanf(f,"%u",&n); ^ user.c:10:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 2 has type ‘long unsigned int’ [-Wformat=] printf("%u %u",t,n); ^ user.c:10:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] user.c:12:19: warning: format ‘%s’ expects argument of type ‘char *’, but argument 3 has type ‘char (*)[10]’ [-Wformat=] fscanf(f,"%s",&line); ^ user.c:22:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 3 has type ‘long unsigned int’ [-Wformat=] fprintf(f,"%u %u %u",ct,cs,sr); ^ user.c:22:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 4 has type ‘long unsigned int’ [-Wformat=] user.c:22:5: warning: format ‘%u’ expects argument of type ‘unsigned int’, but argument 5 has type ‘long unsigned int’ [-Wformat=] user.c:5:27: warning: unused variable ‘i’ [-Wunused-variable] unsigned long int t,n,i,s,sr=0,ct=0,cs=0,r; ^ user.c:16:19: warning: ‘r’ may be used uninitialized in this function [-Wmaybe-uninitialized] switch(r){ ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms236kbIncorect0
Punctaj total0

Ceva nu functioneaza?