Borderou de evaluare (job #1359286)

Utilizator noname23Ionescu Marius noname23 Data 24 februarie 2015 21:56:49
Problema Convertor Status done
Runda rosedu_cdl_2015 Compilator c | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:39:18: warning: comparison between pointer and integer [enabled by default] {for(i=0;s[i]!=NULL;i++) {if(s[i]==':') {i++;while(s[i]==' '||s[i]=='"') {i++;if(s[i]==NULL) {i=0;fgets(s,1030,f);}} ^ user.c:39:91: warning: comparison between pointer and integer [enabled by default] {for(i=0;s[i]!=NULL;i++) {if(s[i]==':') {i++;while(s[i]==' '||s[i]=='"') {i++;if(s[i]==NULL) {i=0;fgets(s,1030,f);}} ^ user.c:40:109: warning: comparison between pointer and integer [enabled by default] while(s[i]!=','&&s[i]!='}'&&s[i]!='"'){ fprintf(g,"%c",s[i]);i++;if(s[i]==NULL){i=0;fgets(s,1030,f);}} ^ user.c:12:11: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:17:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:18:33: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] while(c!='"') fscanf(f,"%c",&c); ^ user.c:19:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:23:23: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:30:15: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:36:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,1030,f); ^ user.c:39:109: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] {for(i=0;s[i]!=NULL;i++) {if(s[i]==':') {i++;while(s[i]==' '||s[i]=='"') {i++;if(s[i]==NULL) {i=0;fgets(s,1030,f);}} ^ user.c:40:126: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] while(s[i]!=','&&s[i]!='}'&&s[i]!='"'){ fprintf(g,"%c",s[i]);i++;if(s[i]==NULL){i=0;fgets(s,1030,f);}} ^ user.c:48:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,1030,f);} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms244kbOK10
20ms240kbOK10
30ms248kbOK10
40ms240kbOK10
50ms244kbIncorect0
60ms248kbOK10
70ms244kbOK10
8Depăşit236kbTime limit exceeded.0
956ms248kbOK10
1060ms248kbIncorect0
Punctaj total70

Ceva nu functioneaza?