#4386
inserare3
Se dă un vector cu n
elemente numere naturale. Să se transforme vectorul, duplicând fiecare apariție a valorii minime.
Problema | inserare3 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #54204580 | Utilizator | |
Fișier | inserare3.cpp | Dimensiune | 318 B |
Data încărcării | 22 Noiembrie 2024, 08:50 | Scor / rezultat | Eroare de compilare |
inserare3.cpp:9:1: error: stray '\302' in program cin>>n>>p; ^ inserare3.cpp:9:1: error: stray '\240' in program inserare3.cpp:9:1: error: stray '\302' in program inserare3.cpp:9:1: error: stray '\240' in program inserare3.cpp:9:1: error: stray '\302' in program inserare3.cpp:9:1: error: stray '\240' in program inserare3.cpp:10:1: error: stray '\302' in program for(int i=1; i<=n; i++) ^ inserare3.cpp:10:1: error: stray '\240' in program inserare3.cpp:10:1: error: stray '\302' in program inserare3.cpp:10:1: error: stray '\240' in program inserare3.cpp:10:1: error: stray '\302' in program inserare3.cpp:10:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program cin>>v[i]; ^ inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:11:1: error: stray '\302' in program inserare3.cpp:11:1: error: stray '\240' in program inserare3.cpp:12:1: error: stray '\302' in program for(int i=p; i<n; i++) ^ inserare3.cpp:12:1: error: stray '\240' in program inserare3.cpp:12:1: error: stray '\302' in program inserare3.cpp:12:1: error: stray '\240' in program inserare3.cpp:12:1: error: stray '\302' in program inserare3.cpp:12:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program v[i]=v[i+1]; ^ inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:13:1: error: stray '\302' in program inserare3.cpp:13:1: error: stray '\240' in program inserare3.cpp:14:1: error: stray '\302' in program for(int i=1; i<n; i++){ ^ inserare3.cpp:14:1: error: stray '\240' in program inserare3.cpp:14:1: error: stray '\302' in program inserare3.cpp:14:1: error: stray '\240' in program inserare3.cpp:14:1: error: stray '\302' in program inserare3.cpp:14:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program cout<<v[i]<<" "; ^ inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:15:1: error: stray '\302' in program inserare3.cpp:15:1: error: stray '\240' in program inserare3.cpp:16:1: error: stray '\302' in program } ^ inserare3.cpp:16:1: error: stray '\240' in program inserare3.cpp:16:1: error: stray '\302' in program inserare3.cpp:16:1: error: stray '\240' in program inserare3.cpp:16:1: error: stray '\302' in program inserare3.cpp:16:1: error: stray '\240' in program inserare3.cpp:17:1: error: stray '\302' in program return 0; ^ inserare3.cpp:17:1: error: stray '\240' in program inserare3.cpp:17:1: error: stray '\302' in program inserare3.cpp:17:1: error: stray '\240' in program inserare3.cpp:17:1: error: stray '\302' in program inserare3.cpp:17:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema inserare3 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ă.