#2271
Se dă un șir cu n numere întregi. Determinați cel mai mare număr care poate fi scris ca produs de două elemente ale șirului.
| Problema | ProdMax1 | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64135374 | Utilizator | |
| Fișier | prodmax1.c | Dimensiune | 491 B |
| Data încărcării | 19 Aprilie 2026, 22:13 | Scor/rezultat | 0 puncte |
prodmax1.c: In function ‘main’: prodmax1.c:6:10: warning: conversion lacks type at end of format [-Wformat=] 6 | scanf("%ll",&n); | ^ prodmax1.c:6:7: warning: too many arguments for format [-Wformat-extra-args] 6 | scanf("%ll",&n); | ^~~~~ prodmax1.c:9:11: warning: conversion lacks type at end of format [-Wformat=] 9 | {scanf("%ll",&m); | ^ prodmax1.c:9:8: warning: too many arguments for format [-Wformat-extra-args] 9 | {scanf("%ll",&m); | ^~~~~ prodmax1.c:40:11: warning: conversion lacks type at end of format [-Wformat=] 40 | printf("%ll",p2); | ^ prodmax1.c:40:8: warning: too many arguments for format [-Wformat-extra-args] 40 | printf("%ll",p2); | ^~~~~ prodmax1.c:42:12: warning: too many arguments for format [-Wformat-extra-args] 42 | printf("ll",p1); | ^~~~ prodmax1.c:41:1: warning: this ‘else’ clause does not guard... [-Wmisleading-indentation] 41 | else | ^~~~ prodmax1.c:43:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘else’ 43 | return 0; | ^~~~~~ prodmax1.c:6:1: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 6 | scanf("%ll",&n); | ^~~~~~~~~~~~~~~ prodmax1.c:9:2: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 9 | {scanf("%ll",&m); | ^~~~~~~~~~~~~~~
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.015 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.014 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.014 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema ProdMax1 face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.