Borderou de evaluare (job #1264001)

Utilizator atatomirTatomir Alex atatomir Data 15 noiembrie 2014 14:14:01
Problema Gaz Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 90

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld %ld %ld %ld %ld",&L,&P,&D,&C,&n,&a[1]); ^ user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 4 has type ‘long long int*’ [-Wformat=] user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 5 has type ‘long long int*’ [-Wformat=] user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 6 has type ‘long long int*’ [-Wformat=] user.cpp:18:57: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 7 has type ‘long long int*’ [-Wformat=] user.cpp:22:37: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] if(i!=n+1) scanf("%ld",&a[i]); ^ user.cpp:40:25: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%ld",dp[n+1]); ^ user.cpp:15:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gaz.in","r",stdin); ^ user.cpp:16:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("gaz.out","w",stdout); ^ user.cpp:18:58: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld %ld %ld %ld %ld",&L,&P,&D,&C,&n,&a[1]); ^ user.cpp:22:38: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] if(i!=n+1) scanf("%ld",&a[i]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms440kbOK10
20ms440kbOK10
30ms436kbOK10
40ms432kbOK10
50ms440kbOK10
60ms436kbOK10
70ms440kbOK10
80ms440kbOK10
90ms448kbOK10
1040ms464kbIncorect0
Punctaj total90

Ceva nu functioneaza?