Pagini recente » Borderou de evaluare (job #2791446) | Borderou de evaluare (job #2841457) | Borderou de evaluare (job #1857351) | Borderou de evaluare (job #1108793) | Borderou de evaluare (job #2251878)
Borderou de evaluare (job #2251878)
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:60:19: warning: conversion lacks type at end of format [-Wformat=]
scanf("%h", &n);
^
user.cpp:60:19: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:65:23: warning: conversion lacks type at end of format [-Wformat=]
scanf("%h", &x);
^
user.cpp:65:23: warning: too many arguments for format [-Wformat-extra-args]
user.cpp:99:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < b.size(); ++ i) {
~~^~~~~~~~~~
user.cpp:57:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.in", "r", stdin);
^
user.cpp:58:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("alpin.out", "w", stdout);
^
user.cpp:60:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%h", &n);
^
user.cpp:65:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%h", &x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | Depăşit | 15836kb | Time limit exceeded. | 0 |
| 2 | Depăşit | 15832kb | Time limit exceeded. | 0 |
| 3 | 0ms | 1336kb | Killed by signal 11(SIGSEGV). | 0 |
| 4 | 0ms | 1332kb | Killed by signal 11(SIGSEGV). | 0 |
| 5 | Depăşit | 15832kb | Time limit exceeded. | 0 |
| 6 | 0ms | 1336kb | Killed by signal 11(SIGSEGV). | 0 |
| 7 | Depăşit | 15832kb | Time limit exceeded. | 0 |
| 8 | Depăşit | 15832kb | Time limit exceeded. | 0 |
| 9 | 0ms | 1332kb | Killed by signal 11(SIGSEGV). | 0 |
| 10 | Depăşit | 15832kb | Time limit exceeded. | 0 |
| Punctaj total | 0 |