Borderou de evaluare (job #1185694)
Raport evaluator
Compilare:
user.cpp: In function ‘int binary_search(int, int, int)’:
user.cpp:13:15: warning: suggest parentheses around ‘+’ inside ‘>>’ [-Wparentheses]
int mid = lo + (hi - lo) >> 1;
^
user.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
user.cpp: In function ‘int main()’:
user.cpp:57:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.in", "r", stdin);
^
user.cpp:58:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("cautbin.out", "w", stdout);
^
user.cpp:63:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &N);
^
user.cpp:65:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &V[i]);
^
user.cpp:67:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &M);
^
user.cpp:72:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &type, &x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 252kb | OK | 10 | 10 |
2 | 0ms | 248kb | OK | 10 | 10 |
3 | 0ms | 244kb | OK | 10 | 10 |
4 | 4ms | 256kb | OK | 10 | 10 |
5 | 20ms | 292kb | OK | 10 | 20 |
6 | 80ms | 440kb | OK | 10 |
7 | 112ms | 632kb | OK | 10 | 40 |
8 | 116ms | 636kb | OK | 10 |
9 | 120ms | 640kb | OK | 10 |
10 | 120ms | 636kb | OK | 10 |
Punctaj total | 100 |