Pagini recente » Borderou de evaluare (job #676325) | Borderou de evaluare (job #775492) | Borderou de evaluare (job #643284) | Borderou de evaluare (job #804342) | Borderou de evaluare (job #1661898)
Borderou de evaluare (job #1661898)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:26:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
++ap[st[i]];
^
user.cpp:28:21: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (ap[st[i]] == 1) ++clg;
^
user.cpp:29:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
else if (ap[st[i]] == 2) ++nr;
^
user.cpp:14:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cod2.in", "r", stdin);
^
user.cpp:15:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("cod2.out", "w", stdout);
^
user.cpp:18:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &n);
^
user.cpp:20:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (st);
^
/tmp/ccF84VKg.o: In function `main':
user.cpp:(.text.startup+0x6f): warning: the `gets' function is dangerous and should not be used.
| Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
| 1 | 0ms | 264kb | Incorect | 0 |
| 2 | 0ms | 268kb | OK | 10 |
| 3 | 0ms | 268kb | Incorect | 0 |
| 4 | 0ms | 264kb | Incorect | 0 |
| 5 | 0ms | 264kb | Incorect | 0 |
| 6 | 0ms | 268kb | Incorect | 0 |
| 7 | 0ms | 268kb | Incorect | 0 |
| 8 | 0ms | 268kb | Incorect | 0 |
| 9 | 0ms | 264kb | Incorect | 0 |
| 10 | 0ms | 268kb | Incorect | 0 |
| Punctaj total | 10 |