Borderou de evaluare (job #1886709)

Utilizator zdavid112zIon David-Gabriel zdavid112z Data 21 februarie 2017 08:51:07
Problema Sub Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 40

Raport evaluator

Compilare: user.cpp: In function ‘void adaug(Trie*, char*, int)’: user.cpp:22:14: warning: NULL used in arithmetic [-Wpointer-arith] if(*v == NULL) return; ^ user.cpp: In function ‘void adaugSir(Trie*, char*, int)’: user.cpp:35:28: warning: NULL used in arithmetic [-Wpointer-arith] for(int i = 0; v[i] != NULL; i++) ^ user.cpp:38:18: warning: converting to non-pointer type ‘char’ from NULL [-Wconversion-null] v[i + 1] = NULL; ^ user.cpp: In function ‘int main()’: user.cpp:65:12: warning: unused variable ‘j’ [-Wunused-variable] int i, j; ^ user.cpp:66:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.in", "r", stdin); ^ user.cpp:67:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sub.out", "w", stdout); ^ user.cpp:68:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &na); ^ user.cpp:71:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", sir); ^ user.cpp:74:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &nb); ^ user.cpp:77:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%s", sir); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms368kbOK10
20ms1120kbOK10
316ms4752kbOK10
4188ms29048kbOK10
5Depăşit19768kbTime limit exceeded.0
6Depăşit16996kbTime limit exceeded.0
7Depăşit7224kbTime limit exceeded.0
8Depăşit4720kbTime limit exceeded.0
9Depăşit4720kbTime limit exceeded.0
10Depăşit6568kbTime limit exceeded.0
Punctaj total40

Ceva nu functioneaza?