Pagini recente » Borderou de evaluare (job #1218552) | Borderou de evaluare (job #1060549) | Borderou de evaluare (job #2042047) | Borderou de evaluare (job #1894101) | Borderou de evaluare (job #2268609)
Borderou de evaluare (job #2268609)
Raport evaluator
Compilare:
main.cpp: In function 'void solve()':
main.cpp:34:18: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int64_t* {aka long int*}' [-Wformat=]
scanf("%lld", &n);
^
main.cpp:37:51: warning: format '%lld' expects argument of type 'long long int*', but argument 2 has type 'int64_t* {aka long int*}' [-Wformat=]
scanf("%lld %lld", &costNormal[i], &costSuper[i]);
^
main.cpp:37:51: warning: format '%lld' expects argument of type 'long long int*', but argument 3 has type 'int64_t* {aka long int*}' [-Wformat=]
main.cpp:40:47: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'int64_t {aka long int}' [-Wformat=]
printf("Consumul minim = %lld.\n", cost(n, 0));
^
main.cpp:34:19: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
main.cpp:37:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &costNormal[i], &costSuper[i]);
^
main.cpp: In function 'int main()':
main.cpp:44:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.in", "r", stdin);
^
main.cpp:45:39: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("calatorie.out", "w", stdout);
^
main.cpp:48:17: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 27ms | 393kb | OK | 100 |
Punctaj total | 100 |