Borderou de evaluare (job #2005026)

Utilizator Rodik_RodyRodica Vasilescu Rodik_Rody Data 26 iulie 2017 14:13:25
Problema Teroristi Status done
Runda Arhiva de probleme Compilator c | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:16:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘char *’ [-Wformat=] scanf("%d%d",&N,&M); ^ user.c:16:5: warning: format ‘%d’ expects argument of type ‘int *’, but argument 3 has type ‘char *’ [-Wformat=] user.c:17:5: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘char (*)[1000006]’ [-Wformat=] scanf("%s",&scrisoare); ^ user.c:29:13: warning: assignment makes integer from pointer without a cast [enabled by default] s[1]=NULL; ^ user.c:14:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.in","r",stdin); ^ user.c:15:12: warning: ignoring return value of ‘freopen’, declared with attribute warn_unused_result [-Wunused-result] freopen("teroristi.out","w",stdout); ^ user.c:16:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&N,&M); ^ user.c:17:10: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s",&scrisoare); ^ user.c:27:14: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s %s",&ziar[i].fata,&ziar[i].verso); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms284kbOk!10
20ms288kbAi esuat!0
30ms288kbAi esuat!0
40ms244kbFisier iesire corupt!0
50ms244kbFisier iesire corupt!0
60ms336kbAi esuat!0
70ms536kbFisier iesire corupt!0
84ms832kbFisier iesire corupt!0
94ms1024kbFisier iesire corupt!0
108ms1264kbAi esuat!0
Punctaj total10

Ceva nu functioneaza?