Borderou de evaluare (job #1234328)

Utilizator radudurlesteanuDurlesteanu Radu Stefan radudurlesteanu Data 27 septembrie 2014 10:14:17
Problema Livada Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] scanf("%d%d%d",&n,&m,&x);x=0; ^ user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long int*’ [-Wformat=] user.cpp:9:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long int*’ [-Wformat=] user.cpp:12:39: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long int*’ [-Wformat=] for (j=0;j<m;j++) scanf("%d",&a[j]); ^ user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long int’ [-Wformat=] printf("%d\n%d",x,max); ^ user.cpp:34:22: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=] user.cpp:7:31: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.in","r",stdin); ^ user.cpp:8:33: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada.out","w",stdout); ^ user.cpp:9:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d",&n,&m,&x);x=0; ^ user.cpp:12:40: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (j=0;j<m;j++) scanf("%d",&a[j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms252kbOK!10
20ms248kbOK!10
30ms224kbWall time limit exceeded.0
40ms220kbKilled by signal 11(SIGSEGV).0
50ms216kbKilled by signal 11(SIGSEGV).0
60ms220kbKilled by signal 11(SIGSEGV).0
70ms220kbKilled by signal 11(SIGSEGV).0
80ms220kbKilled by signal 11(SIGSEGV).0
90ms216kbKilled by signal 11(SIGSEGV).0
100ms216kbKilled by signal 11(SIGSEGV).0
Punctaj total20

Ceva nu functioneaza?