Pagini recente » Borderou de evaluare (job #323701) | Borderou de evaluare (job #1196154) | Borderou de evaluare (job #1881693) | Borderou de evaluare (job #1900436) | Borderou de evaluare (job #1770250)
Borderou de evaluare (job #1770250)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:38:29: warning: array subscript has type ‘char’ [-Wchar-subscripts]
++c[ is[now][i] ];
^
user.cpp:39:39: warning: array subscript has type ‘char’ [-Wchar-subscripts]
now = now - v[ is[now][i] ];
^
user.cpp:12:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sant.in","r",stdin);
^
user.cpp:13:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sant.out","w",stdout);
^
user.cpp:17:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d",&S,&N,&C);
^
user.cpp:18:55: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
for(i = 1; i <= C; ++i) scanf("%d %d",&v[i],&c[i]);
^
user.cpp:43:32: warning: iteration 20u invokes undefined behavior [-Waggressive-loop-optimizations]
for(j = 1; j <= c[i]; ++j) printf("%d ",i);
^
user.cpp:42:9: note: containing loop
for(i = 1; i <= DMax; ++i)
^
user.cpp:35:44: warning: iteration 21u invokes undefined behavior [-Waggressive-loop-optimizations]
for(i = 0; i <= DMax; ++i) c[i] = 0;
^
user.cpp:35:9: note: containing loop
for(i = 0; i <= DMax; ++i) c[i] = 0;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 356kb | Incorect | 0 |
2 | 0ms | 392kb | Incorect | 0 |
3 | 0ms | 500kb | Incorect | 0 |
4 | 0ms | 472kb | Incorect | 0 |
5 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 |
6 | 0ms | 244kb | Killed by signal 11(SIGSEGV). | 0 |
7 | 0ms | 240kb | Killed by signal 11(SIGSEGV). | 0 |
8 | 0ms | 248kb | Killed by signal 11(SIGSEGV). | 0 |
9 | 0ms | 244kb | Killed by signal 11(SIGSEGV). | 0 |
10 | 0ms | 348kb | Incorect | 0 |
Punctaj total | 0 |