#618
Inaltimi
Se dau înălțimile a n
copii, numerotați de la 1
la n
, exprimate prin numere naturale. Afișați numerele de ordine ale copiilor în ordinea crescătoare a înălțimii lor.
Problema | Inaltimi | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #10533292 | Utilizator | |
Fișier | inaltimi.cpp | Dimensiune | 457 B |
Data încărcării | 26 Septembrie 2018, 22:22 | Scor / rezultat | Eroare de compilare |
inaltimi.cpp:3:1: error: stray '\302' in program int main(){ int n, a[100],b[100],j,i,min,c,aux; cin>>n; for(i=1;i<=n;i++) {cin>>a[i]; b[i]=a[i]; }for(i=1;i<=n;i++) {min=a[i]; c=i; for(j=i;j<=n;j++) {if(a[j]<min) {min=a[j];c=j;} ^ inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:3:1: error: stray '\302' in program inaltimi.cpp:3:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program } aux=a[i]; a[i]=a[c]; a[c]=aux; } for(i=1;i<=n;i++) for(j=1;j<=n;j++) if(a[i]==b[j]) cout<<"\n"<<j<<" "; ^ inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:4:1: error: stray '\302' in program inaltimi.cpp:4:1: error: stray '\240' in program inaltimi.cpp:5:1: error: stray '\302' in program return 0;} ^ inaltimi.cpp:5:1: error: stray '\240' in program inaltimi.cpp:5:1: error: stray '\302' in program inaltimi.cpp:5:1: error: stray '\240' in program inaltimi.cpp:5:1: error: stray '\302' in program inaltimi.cpp:5:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Inaltimi 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ă.