Borderou de evaluare (job #2261619)

Utilizator LucaSeriSeritan Luca LucaSeri Data 16 octombrie 2018 15:02:29
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:58: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:51: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:51:5: note: in expansion of macro 'FO' FO(aranjare3); ^~ main.cpp:53:33: 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:62:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:66: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
24ms131kbfinal stack is not sorted0
33ms131kbfinal stack is not sorted0
45ms131kbfinal stack is not sorted0
52ms131kbfinal stack is not sorted0
63ms131kbfinal stack is not sorted0
75ms131kbfinal stack is not sorted0
83ms131kbfinal stack is not sorted0
94ms131kbfinal stack is not sorted0
104ms131kbfinal stack is not sorted0
114ms131kbfinal stack is not sorted0
125ms131kbfinal stack is not sorted0
135ms131kbfinal stack is not sorted0
143ms131kbfinal stack is not sorted0
154ms131kbfinal stack is not sorted0
162ms131kbfinal stack is not sorted0
172ms131kbfinal stack is not sorted0
183ms131kbfinal stack is not sorted0
195ms131kbfinal stack is not sorted0
205ms131kbfinal stack is not sorted0
Punctaj total0

Ceva nu functioneaza?