Borderou de evaluare (job #2261616)

Utilizator LucaSeriSeritan Luca LucaSeri Data 16 octombrie 2018 14:58:40
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:60: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:7: 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:7: note: in expansion of macro 'FO' FO(aranjare3); ^~ main.cpp:52: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:64:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:68: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
14ms131kbfinal stack is not sorted0
22ms131kbfinal stack is not sorted0
35ms131kbfinal stack is not sorted0
44ms131kbfinal stack is not sorted0
52ms131kbfinal stack is not sorted0
64ms131kbfinal stack is not sorted0
72ms131kbfinal stack is not sorted0
82ms131kbfinal stack is not sorted0
95ms131kbfinal stack is not sorted0
103ms131kbfinal stack is not sorted0
113ms131kbfinal stack is not sorted0
122ms131kbfinal stack is not sorted0
132ms131kbfinal stack is not sorted0
145ms131kbfinal stack is not sorted0
154ms131kbfinal stack is not sorted0
164ms131kbfinal stack is not sorted0
173ms131kbfinal stack is not sorted0
183ms131kbfinal stack is not sorted0
192ms131kbfinal stack is not sorted0
202ms131kbfinal stack is not sorted0
Punctaj total0

Ceva nu functioneaza?