Borderou de evaluare (job #1940787)

Utilizator tifui.alexandruTifui Ioan Alexandru tifui.alexandru Data 26 martie 2017 20:12:33
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:20:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<strlen(e1); i++) ^ user.cpp:24:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0; i<strlen(e2); i++) ^ user.cpp:15:6: warning: unused variable ‘aux’ [-Wunused-variable] int aux[maxs]; ^ user.cpp: In function ‘int evaluate(const char*, int)’: user.cpp:94:45: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] while ( e[ poz ] == '|' || e[ poz ] == '^' && poz < l ) ^ user.cpp: In function ‘void readf(FILE*)’: user.cpp:17: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:18: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:128: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
10ms260kbOK10
20ms264kbOK10
30ms256kbOK10
40ms260kbOK10
54ms260kbOK10
60ms264kbOK10
70ms256kbOK10
80ms260kbOK10
90ms256kbOK10
100ms256kbOK10
Punctaj total100

Ceva nu functioneaza?