Pagini recente » Cod sursa (job #1410175) | Borderou de evaluare (job #2096704) | Borderou de evaluare (job #3323432) | Borderou de evaluare (job #1664855) | Borderou de evaluare (job #2254677)
Borderou de evaluare (job #2254677)
Raport evaluator
Compilare:
user.cpp: In function ‘int binarySearch(std::vector<int>&, int)’:
user.cpp:30:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(best + (1<<step) < v.size() && v[best + (1<<step)] <= value) best += (1<<step);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
user.cpp: In function ‘int main()’:
user.cpp:52:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("palind2.in", "r", stdin);
^
user.cpp:53:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("palind2.out", "w", stdout);
^
user.cpp:57:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
user.cpp:60:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
^
user.cpp:66:54: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(int i = 0; i < n; ++i) scanf("%d", &v[i]);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1372kb | OK | 10 |
| 2 | 44ms | 1408kb | OK | 10 |
| 3 | 48ms | 1408kb | OK | 10 |
| 4 | 28ms | 1388kb | OK | 10 |
| 5 | 16ms | 1380kb | OK | 10 |
| 6 | 40ms | 1396kb | OK | 10 |
| 7 | 56ms | 1408kb | OK | 10 |
| 8 | 56ms | 1408kb | OK | 10 |
| 9 | 44ms | 1404kb | OK | 10 |
| 10 | 0ms | 1364kb | OK | 10 |
| Punctaj total | 100 |