Pagini recente » Borderou de evaluare (job #1240311) | Borderou de evaluare (job #813077) | Borderou de evaluare (job #2683779) | Borderou de evaluare (job #610353) | Borderou de evaluare (job #1223249)
Borderou de evaluare (job #1223249)
Raport evaluator
Compilare:
user.cpp: In function ‘int binarySearch(int, const int&)’:
user.cpp:30:23: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
middle = left + right >> 1;
^
user.cpp: In function ‘int main()’:
user.cpp:44:15: warning: unused variable ‘j’ [-Wunused-variable]
int N, i, j, k;
^
user.cpp:44:18: warning: variable ‘k’ set but not used [-Wunused-but-set-variable]
int N, i, j, k;
^
user.cpp:42:42: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavymetal.in", "r", stdin);
^
user.cpp:43:44: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("heavymetal.out", "w", stdout);
^
user.cpp:45:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d", &N);
^
user.cpp:47:48: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d%d", &V[i].left, &V[i].right);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 276kb | OK | 10 |
| 2 | 0ms | 272kb | OK | 10 |
| 3 | 0ms | 280kb | OK | 10 |
| 4 | 0ms | 284kb | OK | 10 |
| 5 | 24ms | 620kb | OK | 10 |
| 6 | 44ms | 856kb | OK | 10 |
| 7 | 72ms | 1152kb | OK | 10 |
| 8 | 92ms | 1328kb | OK | 10 |
| 9 | 96ms | 1444kb | OK | 10 |
| 10 | 96ms | 1444kb | OK | 10 |
| Punctaj total | 100 |