Borderou de evaluare (job #2245797)

Utilizator marinaoprOprea Marina marinaopr Data 25 septembrie 2018 21:11:02
Problema Livada3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 30

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:31:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d%d%lld%d",&N,&M,&C,&R); ^ user.cpp:31:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:31:40: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:32:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d%d%d%d%d",&X,&Y,&Z,&W,&U); ^ user.cpp:32:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:32:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:32:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:32:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:33:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(i=1; i<=M; ++i) {fscanf(fin,"%d",&A[1][i]); Maxim=max(Maxim,A[1][i]);} ^ user.cpp:34:50: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] for(i=2; i<=N; ++i) {fscanf(fin,"%d",&A[i][1]); Maxim=max(Maxim,A[i][1]);} ^ user.cpp:46:29: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"%d",Answer); ^ user.cpp:31:41: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%lld%d",&N,&M,&C,&R); ^ user.cpp:32:44: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d%d%d",&X,&Y,&Z,&W,&U); ^ user.cpp:33:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=1; i<=M; ++i) {fscanf(fin,"%d",&A[1][i]); Maxim=max(Maxim,A[1][i]);} ^ user.cpp:34:51: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i=2; i<=N; ++i) {fscanf(fin,"%d",&A[i][1]); Maxim=max(Maxim,A[i][1]);} ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms1364kbOK10
20ms1396kbOK10
348ms1416kbIncorect0
480ms1424kbIncorect0
592ms1432kbIncorect0
6108ms1432kbIncorect0
7Depăşit3488kbTime limit exceeded.0
8Depăşit3492kbTime limit exceeded.0
9Depăşit3488kbTime limit exceeded.0
100ms1336kbOK10
Punctaj total30

Ceva nu functioneaza?