Borderou de evaluare (job #2023127)

Utilizator vladdy47Bucur Vlad Andrei vladdy47 Data 18 septembrie 2017 12:22:58
Problema Sobo Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:29:36: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=] scanf("%lld ", &bit_cost[i]); ^ user.cpp:38:25: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if (i & (i - 1) == 0) continue; ^ user.cpp:14:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.in", "r", stdin); ^ user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("sobo.out", "w", stdout); ^ user.cpp:17:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d\n", &n, &m); ^ user.cpp:21:26: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(gen_map + 1); ^ user.cpp:29:37: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%lld ", &bit_cost[i]); ^ /tmp/ccYY61Lc.o: In function `main': user.cpp:(.text.startup+0x90): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbCool!10
20ms456kbUrat.. urat de tot: raspuns gresit0
30ms460kbUrat.. urat de tot: raspuns gresit0
412ms464kbUrat.. urat de tot: raspuns gresit0
516ms488kbUrat.. urat de tot: raspuns gresit0
660ms520kbCool!10
7116ms588kbUrat.. urat de tot: raspuns gresit0
8184ms584kbUrat.. urat de tot: raspuns gresit0
9352ms708kbCool!10
10352ms708kbUrat.. urat de tot: raspuns gresit0
Punctaj total30

Ceva nu functioneaza?