Pagini recente » Borderou de evaluare (job #2675241) | Borderou de evaluare (job #2692151) | Borderou de evaluare (job #2615459) | Borderou de evaluare (job #1285139) | Borderou de evaluare (job #1596577)
Borderou de evaluare (job #1596577)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:18:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
for(i=0;i<12;++i) x[S[i]]=i;
^
user.cpp:25:31: warning: array subscript has type ‘char’ [-Wchar-subscripts]
nr[i]=nr[i]*12+x[A[j]];
^
user.cpp:12:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zimeria.in","r",stdin);
^
user.cpp:13:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("zimeria.out","w",stdout);
^
user.cpp:15:32: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d\n",&cerinta,&n);
^
user.cpp:17:12: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(S);
^
user.cpp:22:17: warning: ignoring return value of ‘char* gets(char*)’, declared with attribute warn_unused_result [-Wunused-result]
gets(A);
^
/tmp/cc4569sJ.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 | 272kb | OK | 5 |
| 2 | 0ms | 272kb | OK | 5 |
| 3 | 12ms | 460kb | OK | 5 |
| 4 | 28ms | 656kb | OK | 5 |
| 5 | 56ms | 1052kb | OK | 5 |
| 6 | 120ms | 1824kb | OK | 5 |
| 7 | 0ms | 264kb | OK | 5 |
| 8 | 0ms | 268kb | OK | 5 |
| 9 | 0ms | 276kb | OK | 5 |
| 10 | 0ms | 284kb | OK | 5 |
| 11 | 4ms | 304kb | OK | 5 |
| 12 | 12ms | 336kb | OK | 5 |
| 13 | 24ms | 420kb | OK | 5 |
| 14 | 52ms | 572kb | OK | 5 |
| 15 | 68ms | 656kb | OK | 5 |
| 16 | 96ms | 844kb | OK | 5 |
| 17 | 136ms | 1044kb | OK | 5 |
| 18 | 168ms | 1244kb | OK | 5 |
| 19 | 216ms | 1508kb | OK | 5 |
| 20 | 276ms | 1820kb | OK | 5 |
| Punctaj total | 100 |