Pagini recente » Borderou de evaluare (job #1648614) | Borderou de evaluare (job #1731856) | Borderou de evaluare (job #2521768) | Borderou de evaluare (job #1456075) | Borderou de evaluare (job #1814097)
Borderou de evaluare (job #1814097)
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 |
1 | 120ms | 404kb | Incorect | 0 |
Punctaj total | 0 |