Borderou de evaluare (job #1992308)

Utilizator mouse_wirelessMouse Wireless mouse_wireless Data 20 iunie 2017 04:03:41
Problema Trompeta Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:42:59: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] for (; head < i && (skipped[head] || !skipped[head + 1] && buf[head] > buf[head + 1] || skipped[head + 1] && head < i - 1 && buf[head] > buf[head + 2]); ++head); ^ user.cpp:42:125: warning: suggest parentheses around ‘&&’ within ‘||’ [-Wparentheses] for (; head < i && (skipped[head] || !skipped[head + 1] && buf[head] > buf[head + 1] || skipped[head + 1] && head < i - 1 && buf[head] > buf[head + 2]); ++head); ^ user.cpp:35:29: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(InFile, "r", stdin); ^ user.cpp:36:30: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen(OuFile, "w", stdout); ^ user.cpp:38:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d", &N, &M); getchar(); ^ user.cpp:39:11: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result] gets(buf); ^ /tmp/ccd5XknJ.o: In function `main': user.cpp:(.text.startup+0x7f): warning: the `gets' function is dangerous and should not be used.
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms244kbIncorect0
20ms240kbIncorect0
30ms244kbIncorect0
40ms244kbIncorect0
50ms248kbIncorect0
60ms424kbIncorect0
70ms444kbIncorect0
832ms1832kbIncorect0
924ms1296kbIncorect0
1028ms1748kbIncorect0
Punctaj total0

Ceva nu functioneaza?