#2271
ProdMax1
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 | #18162780 | Utilizator | |
Fișier | prodmax1.cpp | Dimensiune | 520 B |
Data încărcării | 31 Octombrie 2019, 11:02 | Scor / rezultat | Eroare de compilare |
prodmax1.cpp:4:5: error: stray '\302' in program ^ prodmax1.cpp:4:5: error: stray '\240' in program prodmax1.cpp:4:5: error: stray '\302' in program prodmax1.cpp:4:5: error: stray '\240' in program prodmax1.cpp:6:5: error: stray '\302' in program ^ prodmax1.cpp:6:5: error: stray '\240' in program prodmax1.cpp:6:5: error: stray '\302' in program prodmax1.cpp:6:5: error: stray '\240' in program prodmax1.cpp:8:5: error: stray '\302' in program ^ prodmax1.cpp:8:5: error: stray '\240' in program prodmax1.cpp:8:5: error: stray '\302' in program prodmax1.cpp:8:5: error: stray '\240' in program prodmax1.cpp:9:5: error: stray '\302' in program for(int i=1; i<=n; i++) ^ prodmax1.cpp:9:5: error: stray '\240' in program prodmax1.cpp:9:5: error: stray '\302' in program prodmax1.cpp:9:5: error: stray '\240' in program prodmax1.cpp:11:5: error: stray '\302' in program a[0]=maxi; ^ prodmax1.cpp:11:5: error: stray '\240' in program prodmax1.cpp:11:5: error: stray '\302' in program prodmax1.cpp:11:5: error: stray '\240' in program prodmax1.cpp:12:5: error: stray '\302' in program ^ prodmax1.cpp:12:5: error: stray '\240' in program prodmax1.cpp:12:5: error: stray '\302' in program prodmax1.cpp:12:5: error: stray '\240' in program prodmax1.cpp:14:5: error: stray '\302' in program for(int i=1; i<=n; i++) ^ prodmax1.cpp:14:5: error: stray '\240' in program prodmax1.cpp:14:5: error: stray '\302' in program prodmax1.cpp:14:5: error: stray '\240' in program prodmax1.cpp:14:5: error: stray '\302' in program prodmax1.cpp:14:5: error: stray '\240' in program prodmax1.cpp:14:5: error: stray '\302' in program prodmax1.cpp:14:5: error: stray '\240' in program prodmax1.cpp:16:9: error: stray '\302' in program ^ prodmax1.cpp:16:9: error: stray '\240' in program prodmax1.cpp:16:9: error: stray '\302' in program prodmax1.cpp:16:9: error: stray '\240' in program prodmax1.cpp:16:9: error: stray '\302' in program prodmax1.cpp:16:9: error: stray '\240' in program prodmax1.cpp:16:9: error: stray '\302' in program prodmax1.cpp:16:9: error: stray '\240' in program prodmax1.cpp:19:9: error: stray '\302' in program ^ prodmax1.cpp:19:9: error: stray '\240' in program prodmax1.cpp:19:9: error: stray '\302' in program prodmax1.cpp:19:9: error: stray '\240' in program prodmax1.cpp:19:9: error: stray '\302' in program prodmax1.cpp:19:9: error: stray '\240' in program prodmax1.cpp:19:9: error: stray '\302' in program prodmax1.cpp:19:9: error: stray '\240' in program prodmax1.cpp:22:9: error: stray '\302' in program ^ prodmax1.cpp:22:9: error: stray '\240' in program prodmax1.cpp:22:9: error: stray '\302' in program prodmax1.cpp:22:9: error: stray '\240' in program prodmax1.cpp:24:5: error: stray '\302' in program P=maxi*mini; ^ prodmax1.cpp:24:5: error: stray '\240' in program prodmax1.cpp:24:5: error: stray '\302' in program prodmax1.cpp:24:5: error: stray '\240' in program prodmax1.cpp:25:5: error: stray '\302' in program cout<<P; ^ prodmax1.cpp:25:5: error: stray '\240' in program prodmax1.cpp:25:5: error: stray '\302' in program prodmax1.cpp:25:5: error: stray '\240' in program prodmax1.cpp:26:5: error: stray '\302' in program return 0; ^ prodmax1.cpp:26:5: error: stray '\240' in program prodmax1.cpp:26:5: error: stray '\302' in program prodmax1.cpp:26:5: error: stray '\240' in program
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ă.