Borderou de evaluare (job #2251868)

Utilizator LucaSeriSeritan Luca LucaSeri Data 2 octombrie 2018 08:19:43
Problema Alpin Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int binarySearch(std::vector<int>&, int)’: user.cpp:30: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); ~~~~~~~~~~~~~~~~~^~~~~~~~~~ user.cpp: In function ‘int main()’: user.cpp:57:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.in", "r", stdin); ^ user.cpp:58:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("alpin.out", "w", stdout); ^ user.cpp:60:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:65: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
14ms9604kbWrong Answer!0
24ms9728kbDoar lungimea traseului corecta!5
38ms9760kbDoar lungimea traseului corecta!5
416ms9756kbDoar lungimea traseului corecta!5
568ms12976kbDoar lungimea traseului corecta!5
6136ms14200kbDoar lungimea traseului corecta!5
7508ms23196kbDoar lungimea traseului corecta!5
8Depăşit27760kbTime limit exceeded.0
9600ms29268kbWrong Answer!0
10Depăşit30284kbTime limit exceeded.0
Punctaj total30

Ceva nu functioneaza?