Borderou de evaluare (job #1245898)

Utilizator gabimoiseMoise Gabriel gabimoise Data 20 octombrie 2014 10:41:33
Problema Pizza Status done
Runda Arhiva Monthly Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:19: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld",&n); ^ user.cpp:23:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] if (s1>s2) printf("%ld",s1-s2); ^ user.cpp:24:40: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%ld",s2-s1); ^ user.cpp:44:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] if (sum1>sum2) printf("%ld",sum1-sum2); ^ user.cpp:45:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%ld",sum2-sum1); ^ user.cpp:51:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] if (sum1>sum2) printf("%ld",sum1-sum2); ^ user.cpp:52:54: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%ld",sum2-sum1); ^ user.cpp:10:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pizza.in","r",stdin); ^ user.cpp:11:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("pizza.out","w",stdout); ^ user.cpp:12:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",&n); ^ user.cpp:14:25: 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 Punctaj/grupa
10ms436kbIncorect00
20ms440kbIncorect0
30ms436kbIncorect0
40ms444kbIncorect0
50ms444kbIncorect0
60ms440kbIncorect0
70ms448kbIncorect0
80ms456kbIncorect0
90ms472kbIncorect0
100ms452kbIncorect0
Punctaj total0

Ceva nu functioneaza?