Pagini recente » Borderou de evaluare (job #1791538) | Cod sursa (job #413897) | Cod sursa (job #2941855) | Cod sursa (job #2947741) | Borderou de evaluare (job #2251543)
Borderou de evaluare (job #2251543)
Raport evaluator
Compilare:
user.cpp: In function ‘int binarySearch(std::vector<int>&, int)’:
user.cpp:29: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:51:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.in", "r", stdin);
^
user.cpp:52:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("secventa.out", "w", stdout);
^
user.cpp:55:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
user.cpp:59:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 1348kb | Incorect | 0 |
| 2 | 4ms | 1348kb | OK | 10 |
| 3 | 20ms | 1348kb | OK | 10 |
| 4 | 24ms | 1344kb | OK | 10 |
| 5 | 32ms | 1348kb | OK | 10 |
| 6 | 40ms | 1344kb | OK | 10 |
| 7 | 68ms | 1344kb | OK | 10 |
| 8 | 100ms | 1344kb | OK | 10 |
| 9 | Depăşit | 1340kb | Time limit exceeded. | 0 |
| 10 | Depăşit | 1344kb | Time limit exceeded. | 0 |
| Punctaj total | 70 |