Borderou de evaluare (job #1728924)

Utilizator GabiTulbaGabi Tulba-Lecu GabiTulba Data 13 iulie 2016 20:56:57
Problema Livada3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 10

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:49:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d%d",&N,&M,&C,&R); ^ user.cpp:49:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:49:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:49:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:50:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%d%d%d%d%d",&x,&y,&z,&w,&u); ^ user.cpp:50:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:50:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:50:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:50:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:51:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(int i=1;i<=M;i++)scanf("%d",&Mat[1][i]),MAX[1][i]=max(MAX[1][i-1],Mat[1][i]),Sum[1][i]=Sum[1][i-1]+Mat[1][i]; ^ user.cpp:52:44: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=] for(int i=2;i<=N;i++)scanf("%d",&Mat[i][1]),MAX[i][1]=Sum[i][1]=Mat[i][1]; ^ user.cpp:47:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada3.in","r",stdin); ^ user.cpp:48:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("livada3.out","w",stdout); ^ user.cpp:49:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d",&N,&M,&C,&R); ^ user.cpp:50:36: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d%d%d%d%d",&x,&y,&z,&w,&u); ^ user.cpp:51:114: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=1;i<=M;i++)scanf("%d",&Mat[1][i]),MAX[1][i]=max(MAX[1][i-1],Mat[1][i]),Sum[1][i]=Sum[1][i-1]+Mat[1][i]; ^ user.cpp:52:75: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(int i=2;i<=N;i++)scanf("%d",&Mat[i][1]),MAX[i][1]=Sum[i][1]=Mat[i][1]; ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms940kbIncorect0
20ms1712kbOK10
320ms6108kbKilled by signal 11(SIGSEGV).0
420ms6120kbKilled by signal 11(SIGSEGV).0
528ms6124kbKilled by signal 11(SIGSEGV).0
628ms6132kbKilled by signal 11(SIGSEGV).0
7128ms6124kbKilled by signal 11(SIGSEGV).0
8132ms6128kbKilled by signal 11(SIGSEGV).0
9128ms6132kbKilled by signal 11(SIGSEGV).0
100ms520kbIncorect0
Punctaj total10

Ceva nu functioneaza?