Borderou de evaluare (job #607797)

Utilizator avatar andrei_marciuc Marciuc Andrei andrei_marciuc IP ascuns
Problemă Rotate Search (clasa a 10-a) Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 28 sept. 2021 11:40:07 Scor 100

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