Pagini recente »
Borderou de evaluare (job #446239)
|
Borderou de evaluare (job #604650)
|
Borderou de evaluare (job #689929)
|
Borderou de evaluare (job #222438)
|
Borderou de evaluare (job #607797)
Borderou de evaluare (job #607797)
Raport evaluator
Compilare:
main.cpp: In function 'bool binary_search(const int&, const int&)':
main.cpp:14:36: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'const int' [-Wsign-compare]
14 | if( v[ ( med + dif ) % n ] <= val ) {
| ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
main.cpp:19:18: warning: comparison of integer expressions of different signedness: 'unsigned int' and 'const int' [-Wsign-compare]
19 | if( v[ sol ] == val )
| ~~~~~~~~~^~~~~~
main.cpp: In function 'int main()':
main.cpp:29:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
29 | fscanf( fin, "%d\n%u", &n, v );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
main.cpp:31:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
31 | fscanf( fin, "%u", v + i );
| ~~~~~~^~~~~~~~~~~~~~~~~~~~
main.cpp:41:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
41 | fscanf( fin, "%d", &q );
| ~~~~~~^~~~~~~~~~~~~~~~~
main.cpp:43:15: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
43 | fscanf( fin, "%u", &x );
| ~~~~~~^~~~~~~~~~~~~~~~~
Test |
Timp execuție |
Memorie folosită |
Mesaj |
Punctaj/test |
1
|
1 ms
|
131 kb
|
OK
|
10
|
2
|
1 ms
|
131 kb
|
OK
|
10
|
3
|
1 ms
|
131 kb
|
OK
|
10
|
4
|
1 ms
|
131 kb
|
OK
|
10
|
5
|
1 ms
|
131 kb
|
OK
|
10
|
6
|
7 ms
|
131 kb
|
OK
|
10
|
7
|
13 ms
|
258 kb
|
OK
|
10
|
8
|
22 ms
|
262 kb
|
OK
|
10
|
9
|
33 ms
|
393 kb
|
OK
|
10
|
10
|
33 ms
|
393 kb
|
OK
|
10
|
Punctaj total
|
100
|