Pagini recente » Borderou de evaluare (job #1898573) | Borderou de evaluare (job #122599) | Borderou de evaluare (job #2747404) | Borderou de evaluare (job #3269097) | Borderou de evaluare (job #1992308)
Borderou de evaluare (job #1992308)
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 |
| 1 | 0ms | 244kb | Incorect | 0 |
| 2 | 0ms | 240kb | Incorect | 0 |
| 3 | 0ms | 244kb | Incorect | 0 |
| 4 | 0ms | 244kb | Incorect | 0 |
| 5 | 0ms | 248kb | Incorect | 0 |
| 6 | 0ms | 424kb | Incorect | 0 |
| 7 | 0ms | 444kb | Incorect | 0 |
| 8 | 32ms | 1832kb | Incorect | 0 |
| 9 | 24ms | 1296kb | Incorect | 0 |
| 10 | 28ms | 1748kb | Incorect | 0 |
| Punctaj total | 0 |