Pagini recente » Borderou de evaluare (job #1214727) | Borderou de evaluare (job #2887154) | Borderou de evaluare (job #86765) | Borderou de evaluare (job #2447020) | Borderou de evaluare (job #1389370)
Borderou de evaluare (job #1389370)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:25:16: warning: array subscript has type ‘char’ [-Wchar-subscripts]
last[sir[i]][i] = i;
^
user.cpp:36:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ap[curr[i]] ++;
^
user.cpp:41:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if (ap[sir[i]])
^
user.cpp:42:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ap[sir[i]] --, economisesc ++;
^
user.cpp:49:38: warning: array subscript has type ‘char’ [-Wchar-subscripts]
j = last[curr[pos --]][j - 1];
^
user.cpp:62:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
ap[curr[i]] = 0;
^
user.cpp:12:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("mesaj2.in", "r", stdin);
^
user.cpp:13:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen ("mesaj2.out", "w", stdout);
^
user.cpp:15:15: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (sir + 1);
^
user.cpp:28:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf ("%d\n", &N);
^
user.cpp:33:20: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets (curr + 1);
^
/tmp/ccFVSAwh.o: In function `main':
user.cpp:(.text.startup+0x56): warning: the `gets' function is dangerous and should not be used.
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 632kb | OK | 10 |
2 | 0ms | 640kb | OK | 10 |
3 | 0ms | 640kb | OK | 10 |
4 | 4ms | 644kb | OK | 10 |
5 | 20ms | 644kb | OK | 10 |
6 | 20ms | 640kb | OK | 10 |
7 | 32ms | 648kb | OK | 10 |
8 | 36ms | 648kb | OK | 10 |
9 | Depăşit | 640kb | Time limit exceeded. | 0 |
10 | Depăşit | 640kb | Time limit exceeded. | 0 |
Punctaj total | 80 |