Borderou de evaluare (job #1827123)

Utilizator dijmaDijmarescu Ion dijma Data 11 decembrie 2016 14:43:08
Problema Difprim Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:10:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=] scanf("%d%d",&a,&b); ^ user.c:10:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘long int *’ [-Wformat=] user.c:35:9: warning: statement with no effect [-Wunused-value] for(i;i<=b;i++) ^ user.c:45:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d %d",a,b1); ^ user.c:45:5: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.c:9:14: warning: unused variable ‘k’ [-Wunused-variable] long a,b,k=1,j,i,b1; ^ user.c:7:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("difprim.in","r",stdin); ^ user.c:8:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("difprim.out","w",stdout); ^ user.c:10:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&a,&b); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms264kbIncorect0
20ms268kbIncorect0
30ms260kbIncorect0
40ms356kbIncorect0
576ms2208kbIncorect0
64ms2184kbKilled by signal 11(SIGSEGV).0
74ms2184kbKilled by signal 11(SIGSEGV).0
84ms2184kbKilled by signal 11(SIGSEGV).0
94ms2184kbKilled by signal 11(SIGSEGV).0
104ms2184kbKilled by signal 11(SIGSEGV).0
Punctaj total0

Ceva nu functioneaza?