Borderou de evaluare (job #2261618)

Utilizator LucaSeriSeritan Luca LucaSeri Data 16 octombrie 2018 15:00:35
Problema Aranjare3 Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

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:56:15: warning: statement has no effect [-Wunused-value] cout.fixed; ^ main.cpp:7:42: 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:50:5: note: in expansion of macro 'FO' FO(aranjare3); ^~ main.cpp:7:71: 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:50:5: note: in expansion of macro 'FO' FO(aranjare3); ^~ main.cpp:60:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:64:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
112ms262kbfinal stack is not sorted0
212ms262kbfinal stack is not sorted0
315ms262kbfinal stack is not sorted0
412ms262kbfinal stack is not sorted0
512ms262kbfinal stack is not sorted0
6110ms1441kbfinal stack is not sorted0
7105ms1310kbfinal stack is not sorted0
8108ms1310kbfinal stack is not sorted0
9108ms1310kbfinal stack is not sorted0
10105ms1310kbfinal stack is not sorted0
11109ms1441kbfinal stack is not sorted0
12110ms1441kbfinal stack is not sorted0
13110ms1441kbfinal stack is not sorted0
14108ms1310kbfinal stack is not sorted0
15105ms1310kbfinal stack is not sorted0
16110ms1441kbfinal stack is not sorted0
17110ms1441kbfinal stack is not sorted0
18105ms1310kbfinal stack is not sorted0
19105ms1310kbfinal stack is not sorted0
20105ms1310kbfinal stack is not sorted0
Punctaj total0

Ceva nu functioneaza?