Borderou de evaluare (job #1684314)

Utilizator TimoteiCopaciu Timotei Timotei Data 10 aprilie 2016 22:47:25
Problema Flori5 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 60

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:12:28: 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:12:28: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:15:24: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &x); ^ user.cpp:20:20: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld", &m); ^ user.cpp:23:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 2 has type ‘long long int*’ [-Wformat=] scanf("%ld %ld", &x, &y); ^ user.cpp:23:32: warning: format ‘%ld’ expects argument of type ‘long int*’, but argument 3 has type ‘long long int*’ [-Wformat=] user.cpp:26:53: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] if(petale <= centru) printf("%ld\n", petale); ^ user.cpp:28:100: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] if((petale -centru) % (k + 1) == 0) printf("%ld\n", petale - (petale -centru) / (k + 1)); ^ user.cpp:29:73: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘long long int’ [-Wformat=] else printf("%ld\n", petale - (petale -centru) / (k + 1) - 1); ^ user.cpp:9:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.in", "r", stdin); ^ user.cpp:10:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("flori5.out", "w", stdout); ^ user.cpp:12:29: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld", &n, &k); ^ user.cpp:15:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &x); ^ user.cpp:20:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld", &m); ^ user.cpp:23:33: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld %ld", &x, &y); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
10ms436kbOK10
20ms436kbOK10
30ms432kbOK10
40ms436kbOK10
50ms432kbOK10
60ms440kbOK10
74ms456kbIncorect0
8136ms1992kbIncorect0
9136ms1988kbIncorect0
10136ms1988kbIncorect0
Punctaj total60

Ceva nu functioneaza?