Pagini recente » Borderou de evaluare (job #339357) | Borderou de evaluare (job #508792) | Borderou de evaluare (job #610286) | Borderou de evaluare (job #1343417) | Borderou de evaluare (job #2267417)
Borderou de evaluare (job #2267417)
Raport evaluator
Compilare:
main.cpp: In function 'int binarySearch(std::vector<int>&, int)':
main.cpp:36: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);
~~~~~~~~~~~~~~~~~^~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:79:15: warning: statement has no effect [-Wunused-value]
cout.fixed;
^
main.cpp:71:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vmin.in", "r", stdin);
^
main.cpp:72:41: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("vmin.out", "w", stdout);
^
main.cpp:82:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &m);
^
main.cpp:85:40: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &v[i].a, &v[i].b);
^
main.cpp:99:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 3ms | 131kb | OK | 10 |
2 | 3ms | 131kb | OK | 10 |
3 | 4ms | 131kb | OK | 10 |
4 | 6ms | 131kb | OK | 10 |
5 | 33ms | 454kb | OK | 10 |
6 | 111ms | 1257kb | OK | 10 |
7 | 128ms | 1466kb | OK | 10 |
8 | 390ms | 3973kb | OK | 10 |
9 | 702ms | 6725kb | Time limit exceeded | 0 |
10 | 701ms | 6606kb | Time limit exceeded | 0 |
Punctaj total | 80 |