Borderou de evaluare (job #2245332)

Utilizator marinaoprOprea Marina marinaopr Data 25 septembrie 2018 09:07:18
Problema Livada3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 20

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:14:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d%d%d%d",&N,&M,&C,&R); ^ user.cpp:14:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:14:38: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:15: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:15:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:15:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:15:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:15:43: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:16:49: 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]); ^ user.cpp:17:49: 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]); ^ user.cpp:41:28: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"%d",Maxim); ^ user.cpp:14:39: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%d%d",&N,&M,&C,&R); ^ user.cpp:15: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:16:50: 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]); ^ user.cpp:17:50: 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]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms932kbOK10
20ms1136kbIncorect0
316ms3008kbIncorect0
4120ms3400kbIncorect0
528ms4180kbIncorect0
6124ms4184kbIncorect0
7168ms20192kbIncorect0
8220ms20196kbIncorect0
9304ms20196kbIncorect0
108ms804kbOK10
Punctaj total20

Ceva nu functioneaza?