Pagini recente » Borderou de evaluare (job #379660) | Borderou de evaluare (job #1684314)
Borderou de evaluare (job #1684314)
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 |
1 | 0ms | 436kb | OK | 10 |
2 | 0ms | 436kb | OK | 10 |
3 | 0ms | 432kb | OK | 10 |
4 | 0ms | 436kb | OK | 10 |
5 | 0ms | 432kb | OK | 10 |
6 | 0ms | 440kb | OK | 10 |
7 | 4ms | 456kb | Incorect | 0 |
8 | 136ms | 1992kb | Incorect | 0 |
9 | 136ms | 1988kb | Incorect | 0 |
10 | 136ms | 1988kb | Incorect | 0 |
Punctaj total | 60 |