Borderou de evaluare (job #1660594)

Utilizator rudarelLup Ionut rudarel Data 23 martie 2016 11:41:24
Problema Logic Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘void readf(FILE*)’: user.cpp:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<strlen(e1); i++) ^ user.cpp:38:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<strlen(e2); i++) ^ user.cpp:24:6: warning: unused variable ‘aux’ [-Wunused-variable] int aux[maxs]; ^ user.cpp: In function ‘int evaluate(const char*, int)’: user.cpp:129:45: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] while ( e[ poz ] == '|' || e[ poz ] == '^' && poz < l ) ^ user.cpp: In function ‘void readf(FILE*)’: user.cpp:28:36: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(e1, maxs, fin), rem_endl(e1); ^ user.cpp:29:36: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] fgets(e2, maxs, fin), rem_endl(e2); ^ user.cpp: In function ‘int main()’: user.cpp:171:32: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(fscanf(fin, "%d\n", &t); t; --t) ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms256kbOK10
20ms252kbOK10
30ms256kbOK10
40ms256kbOK10
54ms260kbOK10
60ms256kbOK10
70ms256kbOK10
80ms260kbOK10
90ms260kbOK10
100ms256kbOK10
Punctaj total100

Ceva nu functioneaza?