Borderou de evaluare (job #1590825)

Utilizator Coroian_DavidCoroian David Coroian_David Data 5 februarie 2016 16:26:10
Problema Numar2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

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
20ms460kbOK10
30ms460kbOK10
44ms488kbOK10
58ms528kbOK10
612ms564kbOK10
712ms560kbOK10
812ms568kbOK10
912ms560kbOK10
1012ms564kbIncorect0
Punctaj total90

Ceva nu functioneaza?