Pagini recente » Borderou de evaluare (job #353614) | Borderou de evaluare (job #474835) | Borderou de evaluare (job #1003985) | Borderou de evaluare (job #476221) | Borderou de evaluare (job #1421192)
Borderou de evaluare (job #1421192)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:45:44: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__gnu_cxx::__alloc_traits<std::allocator<int> >::value_type {aka int}’ [-Wformat=]
printf("%lld\n", A[0] * A[1] * A[lg - 1]);
^
user.cpp:48:84: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%lld\n", max(A[lg - 3] * A[lg - 2] * A[lg - 1], A[0] * A[1] * A[lg - 1]));
^
user.cpp:26:6: warning: unused variable ‘i’ [-Wunused-variable]
int i;
^
user.cpp:28:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("produs4.in", "r", stdin);
^
user.cpp:29:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("produs4.out", "w", stdout);
^
user.cpp:31:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &T);
^
user.cpp:33:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &N);
^
user.cpp:37:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &x);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 124ms | 564kb | Incorect | 0 |
Punctaj total | 0 |