Borderou de evaluare (job #1404419)

Utilizator DenisONIcBanu Denis Andrei DenisONIc Data 28 martie 2015 10:21:04
Problema Elemente Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 70

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld%ld",&n,&k); ^ user.cpp:18:25: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:21:26: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&v[i]); ^ user.cpp:48:21: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld",sum); ^ user.cpp:15:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elemente.in","r",stdin); ^ user.cpp:16:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("elemente.out","w",stdout); ^ user.cpp:18:26: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&n,&k); ^ user.cpp:21:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&v[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms268kbOK10
20ms260kbOK10
30ms268kbOK10
40ms280kbOK10
512ms736kbOK10
620ms732kbOK10
736ms1048kbOK10
852ms1356kbIncorect0
972ms1668kbIncorect0
1076ms1820kbIncorect0
Punctaj total70

Ceva nu functioneaza?