Borderou de evaluare (job #2556295)

Utilizator giotoPopescu Ioan gioto Data 24 februarie 2020 19:55:08
Problema Timetravel Status done
Runda top_12_agm Compilator cpp-64 | Vezi sursa
Scor 60

Raport evaluator

Compilare: main.cpp: In function 'int get_val(int)': main.cpp:13:9: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(pos < v.size() && x > v[pos]) ++pos; ~~~~^~~~~~~~~~ main.cpp: In function 'int main()': main.cpp:140:22: warning: unused variable 'ok' [-Wunused-variable] bool ok = 0; ^~ main.cpp:70:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("timetravel.in", "r", stdin); ^ main.cpp:71:40: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("timetravel.out", "w", stdout); ^ main.cpp:73:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:77:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &tip, &x); ^ main.cpp:78:55: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] if(tip == 2 || tip == 4 || tip == 5) scanf("%d", &x); ^ main.cpp:90:38: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("timetravel.in", "r", stdin); ^ main.cpp:92:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:97:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &tip, &x); ^ main.cpp:113:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^ main.cpp:125:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^ main.cpp:142:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
111ms4980kbOK10
216ms4980kbOK10
332ms5111kbOK10
4152ms7733kbOK10
5662ms11796kbOK10
61008ms15986kbOK10
71502ms21487kbTime limit exceeded0
81501ms21467kbTime limit exceeded0
91502ms20963kbTime limit exceeded0
101500ms22667kbTime limit exceeded0
Punctaj total60

Ceva nu functioneaza?