Borderou de evaluare (job #1814097)

Utilizator SilviuIIon Silviu SilviuI Data 23 noiembrie 2016 17:35:59
Problema Produs4 Status done
Runda Arhiva ICPC Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Compilare: user.cpp: In function ‘int main()’: user.cpp:27:90: warning: format ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘long long int’ [-Wformat=] printf("%I64d\n", max(1LL * t[1] * t[2] * t[n], 1LL * t[n] * t[n - 1] * t[n - 2])); ^ user.cpp:12:38: 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:13:40: 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:15:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &tt); ^ user.cpp:21:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ user.cpp:23:57: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for (int j = 1; j <= n; j++) scanf("%d ", &t[j]); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test
1120ms404kbIncorect0
Punctaj total0

Ceva nu functioneaza?