Pagini recente » Borderou de evaluare (job #2297458) | Borderou de evaluare (job #839251) | Borderou de evaluare (job #967316) | Borderou de evaluare (job #520878) | Borderou de evaluare (job #1684311)
Borderou de evaluare (job #1684311)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d %d", &n, &k);
^
user.cpp:12:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:15:23: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &x);
^
user.cpp:20:19: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d", &m);
^
user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%d %d", &x, &y);
^
user.cpp:23:30: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long int*’ [-Wformat=]
user.cpp:26:52: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if(petale <= centru) printf("%d\n", petale);
^
user.cpp:28:99: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
if((petale -centru) % (k + 1) == 0) printf("%d\n", petale - (petale -centru) / (k + 1));
^
user.cpp:29:72: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=]
else printf("%d\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:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &k);
^
user.cpp:15:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
user.cpp:20:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &m);
^
user.cpp:23:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &x, &y);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 440kb | OK | 10 |
2 | 0ms | 436kb | OK | 10 |
3 | 0ms | 440kb | OK | 10 |
4 | 0ms | 440kb | OK | 10 |
5 | 0ms | 436kb | OK | 10 |
6 | 0ms | 436kb | OK | 10 |
7 | 4ms | 456kb | Incorect | 0 |
8 | 136ms | 1996kb | Incorect | 0 |
9 | 136ms | 1992kb | Incorect | 0 |
10 | 136ms | 1992kb | Incorect | 0 |
Punctaj total | 60 |