Borderou de evaluare (job #1866482)

Utilizator Silviu.Stancioiu@gmail.comSilviu Stancioiu [email protected] Data 3 februarie 2017 10:23:39
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp:38:33: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] char crtLine[MAX_LENGTH] = {NULL}; ^ user.cpp: In function ‘void Read()’: user.cpp:148:29: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%c", &c); ^ user.cpp:157:37: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%c", &c); ^ user.cpp:163:44: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] if(fscanf(fin, "%c", &c) == EOF) ^ user.cpp:144:12: warning: unused variable ‘pos’ [-Wunused-variable] fpos_t pos; ^ user.cpp:145:47: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%d %d %d %d", &n, &a, &r, &k); ^ user.cpp:148:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%c", &c); ^ user.cpp:157:38: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%c", &c); ^ user.cpp:175:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin, "%s", crtLine); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
14ms1876kbOK10
24ms1888kbOK10
312ms1924kbOK10
424ms1960kbOK10
5108ms2332kbOK10
6200ms2708kbPartial incorect5
7340ms3344kbPartial incorect5
8Depăşit3868kbTime limit exceeded.0
9Depăşit1844kbTime limit exceeded.0
10Depăşit4004kbTime limit exceeded.0
Punctaj total60

Ceva nu functioneaza?