Borderou de evaluare (job #1866229)

Utilizator Silviu.Stancioiu@gmail.comSilviu Stancioiu [email protected] Data 2 februarie 2017 19:25:15
Problema Showroom Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

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:147:29: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%c", &c); ^ user.cpp:156:37: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] fscanf(fin, "%c", &c); ^ user.cpp:162:44: warning: format ‘%c’ expects argument of type ‘char*’, but argument 3 has type ‘int*’ [-Wformat=] if(fscanf(fin, "%c", &c) == EOF) ^ user.cpp:174:39: warning: format ‘%s’ expects argument of type ‘char*’, but argument 3 has type ‘char (*)[25]’ [-Wformat=] fscanf(fin, "%s", &crtLine); ^ user.cpp:143:12: warning: unused variable ‘pos’ [-Wunused-variable] fpos_t pos; ^ user.cpp:144: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:147: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:156: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:174:40: 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
10ms1572kbOK10
24ms1572kbPartial incorect5
312ms1608kbPartial incorect5
424ms1656kbPartial incorect5
5116ms2020kbPartial incorect5
6216ms2404kbPartial incorect5
7360ms3040kbPartial incorect5
8Depăşit3712kbTime limit exceeded.0
9Depăşit1844kbTime limit exceeded.0
10Depăşit3736kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?