Borderou de evaluare (job #1897593)

Utilizator ivan.tudorIvan Tudor ivan.tudor Data 1 martie 2017 16:07:55
Problema Livada3 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘bool verif(int)’: user.cpp:32:14: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(suma>=c) ^ user.cpp: In function ‘int main()’: user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 6 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d%d%lld%d%d%d%d%d%d",&n,&m,&c,&r,&x,&y,&z,&w,&u); ^ user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 8 has type ‘long long int*’ [-Wformat=] user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 9 has type ‘long long int*’ [-Wformat=] user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 10 has type ‘long long int*’ [-Wformat=] user.cpp:54:65: warning: format ‘%d’ expects argument of type ‘int*’, but argument 11 has type ‘long long int*’ [-Wformat=] user.cpp:57:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d",&mat[1][j]); ^ user.cpp:61:35: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(fin,"%d",&mat[i][1]); ^ user.cpp:73:26: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(fout,"%d",rez); ^ user.cpp:54:66: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d%d%lld%d%d%d%d%d%d",&n,&m,&c,&r,&x,&y,&z,&w,&u); ^ user.cpp:57:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&mat[1][j]); ^ user.cpp:61:36: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(fin,"%d",&mat[i][1]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms656kbIncorect0
20ms920kbIncorect0
320ms2796kbIncorect0
428ms3192kbIncorect0
536ms3968kbIncorect0
636ms3968kbIncorect0
7220ms19972kbIncorect0
8220ms19976kbIncorect0
9224ms19972kbIncorect0
100ms524kbIncorect0
Punctaj total0

Ceva nu functioneaza?