Borderou de evaluare (job #1595697)

Utilizator Coroian_DavidCoroian David Coroian_David Data 10 februarie 2016 14:47:22
Problema Numar2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 100

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:11:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%ld%ld",&n,&m); ^ user.cpp:11:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:14:29: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] fscanf(f,"%ld",&p[i]); ^ user.cpp:40:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 3 has type ‘long long int’ [-Wformat=] fprintf(g,"%ld",v[m]); ^ user.cpp:11:29: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld%ld",&n,&m); ^ user.cpp:14:30: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%ld",&p[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms456kbOK10
20ms456kbOK10
30ms460kbOK10
44ms488kbOK10
58ms528kbOK10
612ms560kbOK10
712ms564kbOK10
812ms564kbOK10
912ms564kbOK10
1012ms564kbOK10
Punctaj total100

Ceva nu functioneaza?