Pagini recente » Borderou de evaluare (job #2212156) | Borderou de evaluare (job #2004179) | Borderou de evaluare (job #1547878) | Borderou de evaluare (job #579782) | Borderou de evaluare (job #1654387)
Borderou de evaluare (job #1654387)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:22:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!ap[st[i]]) ++nr;
^
user.cpp:23:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
++ap[st[i]];
^
user.cpp:27:23: warning: array subscript has type ‘char’ [-Wchar-subscripts]
--ap[st[a]];
^
user.cpp:28:28: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (!ap[st[a++]]) --nr;
^
user.cpp:12:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("teatru.in", "r", stdin);
^
user.cpp:13:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("teatru.out", "w", stdout);
^
user.cpp:16:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d %d\n", &n, &c);
^
user.cpp:18:14: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (st);
^
user.cpp:19:32: warning: ‘ind’ may be used uninitialized in this function [-Wmaybe-uninitialized]
int a = 0, nr = 0, ma = 0, ind;
^
/tmp/ccb9h2Fe.o: In function `main':
user.cpp:(.text.startup+0x72): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 280kb | OK | 10 |
2 | 0ms | 280kb | OK | 10 |
3 | 0ms | 336kb | OK | 10 |
4 | 0ms | 328kb | OK | 10 |
5 | 0ms | 328kb | OK | 10 |
6 | 0ms | 296kb | OK | 10 |
7 | 4ms | 316kb | OK | 10 |
8 | 0ms | 308kb | OK | 10 |
9 | 4ms | 324kb | OK | 10 |
10 | 4ms | 328kb | OK | 10 |
Punctaj total | 100 |