Borderou de evaluare (job #1359280)

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

Raport evaluator

Compilare: user.c: In function ‘main’: user.c:13:21: warning: comparison between pointer and integer [enabled by default] for(i=0;s[i]!=NULL&&j==0;i++) {if(s[i]==','||s[i]=='{') {i++;while(s[i]!='"') {i++;if(s[i]==NULL){i=0;fgets(s,1030,f);}}i++; ^ user.c:13:99: warning: comparison between pointer and integer [enabled by default] for(i=0;s[i]!=NULL&&j==0;i++) {if(s[i]==','||s[i]=='{') {i++;while(s[i]!='"') {i++;if(s[i]==NULL){i=0;fgets(s,1030,f);}}i++; ^ user.c:14:58: warning: implicit declaration of function ‘strlen’ [-Wimplicit-function-declaration] while(s[i]!='"'&&i<strlen(s)) {fprintf(g,"%c",s[i]);i++;}fprintf(g,","); ^ user.c:14:77: warning: incompatible implicit declaration of built-in function ‘strlen’ [enabled by default] while(s[i]!='"'&&i<strlen(s)) {fprintf(g,"%c",s[i]);i++;}fprintf(g,","); ^ user.c:10:10: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] fgets(s,1030,f); ^ user.c:13:116: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result] for(i=0;s[i]!=NULL&&j==0;i++) {if(s[i]==','||s[i]=='{') {i++;while(s[i]!='"') {i++;if(s[i]==NULL){i=0;fgets(s,1030,f);}}i++; ^ user.c:24:19: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^ user.c:25:40: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] while(c==' '||c=='"')fscanf(f,"%c",&c); ^ user.c:29:23: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%c",&c); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms248kbIncorect0
20ms244kbOK10
30ms244kbIncorect0
40ms240kbIncorect0
5Depăşit252kbTime limit exceeded.0
60ms244kbIncorect0
7Depăşit248kbTime limit exceeded.0
8Depăşit244kbTime limit exceeded.0
9Depăşit248kbTime limit exceeded.0
10Depăşit244kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?