Pagini recente » Borderou de evaluare (job #1523301) | Borderou de evaluare (job #2159521) | Borderou de evaluare (job #1181211) | Cod sursa (job #200318) | Borderou de evaluare (job #2105493)
Borderou de evaluare (job #2105493)
Raport evaluator
Compilare:
user.cpp: In constructor ‘Hash::Hash()’:
user.cpp:15:30: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(list, 0x00, sizeof(list));
^
user.cpp: In member function ‘void Hash::clear()’:
user.cpp:30:30: warning: argument to ‘sizeof’ in ‘void* memset(void*, int, size_t)’ call is the same expression as the destination; did you mean to dereference it? [-Wsizeof-pointer-memaccess]
memset(list, 0x00, sizeof(list));
^
user.cpp: In function ‘int main()’:
user.cpp:68:10: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
flag = k = 0;
^
user.cpp:41:8: warning: variable ‘flag’ set but not used [-Wunused-but-set-variable]
bool flag;
^
user.cpp:48:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &x);
^
user.cpp:58:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(fin, "%d", &x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 476kb | Incorect | 0 |
| 2 | 4ms | 480kb | Incorect | 0 |
| 3 | 4ms | 476kb | Incorect | 0 |
| 4 | 36ms | 480kb | Incorect | 0 |
| 5 | 44ms | 476kb | OK | 10 |
| 6 | 80ms | 480kb | Incorect | 0 |
| 7 | 96ms | 484kb | Incorect | 0 |
| 8 | 104ms | 480kb | Incorect | 0 |
| 9 | 112ms | 480kb | Incorect | 0 |
| 10 | 112ms | 480kb | Incorect | 0 |
| Punctaj total | 10 |