Pagini recente » Borderou de evaluare (job #1057551) | Borderou de evaluare (job #155024) | Borderou de evaluare (job #2139025) | Borderou de evaluare (job #1826850) | Borderou de evaluare (job #2260887)
Borderou de evaluare (job #2260887)
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:54:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input", "r", stdin);
^
main.cpp:7:43: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define fo(x) freopen(#x".in", "r", stdin);freopen(#x".out", "w", stdout);
^
main.cpp:58:7: note: in expansion of macro 'fo'
fo(orase1);
^~
main.cpp:7:74: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
#define fo(x) freopen(#x".in", "r", stdin);freopen(#x".out", "w", stdout);
^
main.cpp:58:7: note: in expansion of macro 'fo'
fo(orase1);
^~
main.cpp:68:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d", &n, &k);
^
main.cpp:71:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", dist + i);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 2ms | 131kb | OK | 10 | 10 |
2 | 2ms | 131kb | OK | 10 | 10 |
3 | 24ms | 512kb | OK | 10 | 10 |
4 | 53ms | 901kb | OK | 10 | 10 |
5 | 141ms | 2490kb | OK | 10 | 10 |
6 | 156ms | 2891kb | OK | 10 | 10 |
7 | 185ms | 3403kb | OK | 10 | 30 |
8 | 214ms | 3792kb | OK | 10 |
9 | 239ms | 4190kb | OK | 10 |
10 | 2ms | 131kb | OK | 10 | 10 |
Punctaj total | 100 |