Borderou de evaluare (job #1610558)

Utilizator TibiraducanuTiberiu Raducanu Tibiraducanu Data 23 februarie 2016 17:19:17
Problema Lanterna Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:51:42: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=] for(i=1;i<=n;i++) scanf("%d",&heal[i]); ^ user.cpp:45:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lanterna.in","r",stdin); ^ user.cpp:46:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("lanterna.out","w",stdout); ^ user.cpp:50:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d",&n,&k); ^ user.cpp:51:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1;i<=n;i++) scanf("%d",&heal[i]); ^ user.cpp:53:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&m); ^ user.cpp:57:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&a,&b,&c,&d); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
18ms316kbOK10
2Depăşit276kbTime limit exceeded.0
3Depăşit276kbTime limit exceeded.0
412ms8452kbKilled by signal 11(SIGSEGV).0
5Depăşit280kbTime limit exceeded.0
6Depăşit268kbTime limit exceeded.0
7Depăşit256kbTime limit exceeded.0
8Depăşit276kbTime limit exceeded.0
912ms8440kbKilled by signal 11(SIGSEGV).0
10Depăşit272kbTime limit exceeded.0
Punctaj total10

Ceva nu functioneaza?