#1883
UEMM
Se dă un șir cu n
elemente, numere naturale. Să se afișeze, pentru fiecare element din șir, valoarea din șir aflată după acesta și mai mare decât acesta. Dacă o asemenea valoare nu există, se va afișa -1
.
Problema | UEMM | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #52757818 | Utilizator | |
Fișier | uemm.cpp | Dimensiune | 357 B |
Data încărcării | 08 Octombrie 2024, 18:46 | Scor / rezultat | Eroare de compilare |
uemm.cpp:5:1: error: stray '\342' in program int n,i,j,v[1001],x[1001]; ^ uemm.cpp:5:1: error: stray '\200' in program uemm.cpp:5:1: error: stray '\203' in program uemm.cpp:5:1: error: stray '\342' in program uemm.cpp:5:1: error: stray '\200' in program uemm.cpp:5:1: error: stray '\203' in program uemm.cpp:8:2: error: stray '\302' in program cin>>v[i]; ^ uemm.cpp:8:2: error: stray '\240' in program uemm.cpp:8:2: error: stray '\302' in program uemm.cpp:8:2: error: stray '\240' in program uemm.cpp:11:2: error: stray '\302' in program j=i+1; ^ uemm.cpp:11:2: error: stray '\240' in program uemm.cpp:12:2: error: stray '\302' in program while(v[i]>=v[j] && j<=n) ^ uemm.cpp:12:2: error: stray '\240' in program uemm.cpp:13:1: error: stray '\342' in program j++; ^ uemm.cpp:13:1: error: stray '\200' in program uemm.cpp:13:1: error: stray '\203' in program uemm.cpp:13:1: error: stray '\342' in program uemm.cpp:13:1: error: stray '\200' in program uemm.cpp:13:1: error: stray '\203' in program uemm.cpp:14:2: error: stray '\302' in program if(j<=n) ^ uemm.cpp:14:2: error: stray '\240' in program uemm.cpp:15:1: error: stray '\342' in program x[i]=v[j]; ^ uemm.cpp:15:1: error: stray '\200' in program uemm.cpp:15:1: error: stray '\203' in program uemm.cpp:15:1: error: stray '\342' in program uemm.cpp:15:1: error: stray '\200' in program uemm.cpp:15:1: error: stray '\203' in program uemm.cpp:16:2: error: stray '\302' in program else ^ uemm.cpp:16:2: error: stray '\240' in program uemm.cpp:17:2: error: stray '\302' in program x[i]=-1; ^ uemm.cpp:17:2: error: stray '\240' in program uemm.cpp:17:2: error: stray '\302' in program uemm.cpp:17:2: error: stray '\240' in program uemm.cpp:17:2: error: stray '\302' in program uemm.cpp:17:2: error: stray '\240' in program uemm.cpp:17:2: error: stray '\302' in program uemm.cpp:17:2: error: stray '\240' in program uemm.cpp:17:2: error: stray '\342' in program uemm.cpp:17:2: error: stray '\200' in program uemm.cpp:17:2: error: stray '\203' in program uemm.cpp:17:2: error: stray '\342' in program uemm.cpp:17:2: error: stray '\200' in program uemm.cpp:17:2: error: stray '\203' in program uemm.cpp:18:2: error: stray '\302' in program cout<<x[i]<<" "; ^ uemm.cpp:18:2: error: stray '\240' in program uemm.cpp:20:1: error: stray '\342' in program x[n]=-1; ^ uemm.cpp:20:1: error: stray '\200' in program uemm.cpp:20:1: error: stray '\203' in program uemm.cpp:20:1: error: stray '\342' in program uemm.cpp:20:1: error: stray '\200' in program uemm.cpp:20:1: error: stray '\203' in program uemm.cpp:20:1: error: stray '\302' in program uemm.cpp:20:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema UEMM 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ă.