Borderou de evaluare (job #1421192)

Utilizator UAIC_Elnazli_Morosac_RaresC Elnazli M Morosac R Babuta UAIC_Elnazli_Morosac_Rares Data 19 aprilie 2015 11:00:39
Problema Produs4 Status done
Runda ONIS 2015, Runda 3 Compilator cpp | Vezi sursa
Scor 0

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
1124ms564kbIncorect0
Punctaj total0

Ceva nu functioneaza?