Pagini recente » Borderou de evaluare (job #2437487) | Borderou de evaluare (job #2974067) | Borderou de evaluare (job #364825) | Borderou de evaluare (job #2357453) | Borderou de evaluare (job #1728989)
Borderou de evaluare (job #1728989)
Raport evaluator
Compilare:
user.cpp: In function ‘void Answer()’:
user.cpp:41:16: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
printf("%d",lw);
^
user.cpp: In function ‘int main()’:
user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d%d%lld%d",&N,&M,&C,&R);
^
user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:47:32: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
user.cpp:48: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:48:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:48:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=]
user.cpp:48:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=]
user.cpp:48:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=]
user.cpp:49: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:50: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:45: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:46: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:47:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%lld%d",&N,&M,&C,&R);
^
user.cpp:48: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:49: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:50: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 |
1 | 0ms | 936kb | OK | 10 |
2 | 0ms | 1732kb | OK | 10 |
3 | 20ms | 7352kb | OK | 10 |
4 | 24ms | 8520kb | OK | 10 |
5 | 36ms | 10876kb | OK | 10 |
6 | 32ms | 10880kb | OK | 10 |
7 | 200ms | 58912kb | OK | 10 |
8 | 200ms | 58920kb | OK | 10 |
9 | 200ms | 58912kb | OK | 10 |
10 | 0ms | 528kb | OK | 10 |
Punctaj total | 100 |