#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 | #8976877 | Utilizator | |
Fișier | inaltimi.cpp | Dimensiune | 518 B |
Data încărcării | 23 Martie 2018, 12:18 | Scor / rezultat | Eroare de compilare |
inaltimi.cpp:4:1: error: stray '\302' in program { int n, a[100],b[100],j,i,min,c,aux; ^ 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:2: error: stray '\302' in program cin>>n; ^ inaltimi.cpp:5:2: error: stray '\240' in program inaltimi.cpp:5:2: error: stray '\302' in program inaltimi.cpp:5:2: error: stray '\240' in program inaltimi.cpp:6:2: error: stray '\302' in program for(i=1;i<=n;i++) ^ inaltimi.cpp:6:2: error: stray '\240' in program inaltimi.cpp:6:2: error: stray '\302' in program inaltimi.cpp:6:2: error: stray '\240' in program inaltimi.cpp:7:2: error: stray '\302' in program {cin>>a[i]; ^ inaltimi.cpp:7:2: error: stray '\240' in program inaltimi.cpp:7:2: error: stray '\302' in program inaltimi.cpp:7:2: error: stray '\240' in program inaltimi.cpp:8:3: error: stray '\302' in program b[i]=a[i]; ^ inaltimi.cpp:8:3: error: stray '\240' in program inaltimi.cpp:8:3: error: stray '\302' in program inaltimi.cpp:8:3: error: stray '\240' in program inaltimi.cpp:10:2: error: stray '\302' in program for(i=1;i<=n;i++) ^ inaltimi.cpp:10:2: error: stray '\240' in program inaltimi.cpp:10:2: error: stray '\302' in program inaltimi.cpp:10:2: error: stray '\240' in program inaltimi.cpp:11:2: error: stray '\302' in program {min=a[i]; ^ inaltimi.cpp:11:2: error: stray '\240' in program inaltimi.cpp:11:2: error: stray '\302' in program inaltimi.cpp:11:2: error: stray '\240' in program inaltimi.cpp:12:3: error: stray '\302' in program c=i; ^ inaltimi.cpp:12:3: error: stray '\240' in program inaltimi.cpp:12:3: error: stray '\302' in program inaltimi.cpp:12:3: error: stray '\240' in program inaltimi.cpp:12:3: error: stray '\302' in program inaltimi.cpp:12:3: error: stray '\240' in program inaltimi.cpp:13:3: error: stray '\302' in program for(j=i;j<=n;j++) ^ inaltimi.cpp:13:3: error: stray '\240' in program inaltimi.cpp:13:3: error: stray '\302' in program inaltimi.cpp:13:3: error: stray '\240' in program inaltimi.cpp:13:3: error: stray '\302' in program inaltimi.cpp:13:3: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program } aux=a[i]; ^ inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:16:3: error: stray '\302' in program a[i]=a[c]; ^ inaltimi.cpp:16:3: error: stray '\240' in program inaltimi.cpp:16:3: error: stray '\302' in program inaltimi.cpp:16:3: error: stray '\240' in program inaltimi.cpp:16:3: error: stray '\302' in program inaltimi.cpp:16:3: error: stray '\240' in program inaltimi.cpp:17:3: error: stray '\302' in program a[c]=aux; } ^ inaltimi.cpp:17:3: error: stray '\240' in program inaltimi.cpp:17:3: error: stray '\302' in program inaltimi.cpp:17:3: error: stray '\240' in program inaltimi.cpp:17:3: error: stray '\302' in program inaltimi.cpp:17:3: error: stray '\240' in program inaltimi.cpp:17:3: error: stray '\302' in program inaltimi.cpp:17:3: error: stray '\240' in program inaltimi.cpp:18:2: error: stray '\302' in program for(i=1;i<=n;i++) ^ inaltimi.cpp:18:2: error: stray '\240' in program inaltimi.cpp:18:2: error: stray '\302' in program inaltimi.cpp:18:2: error: stray '\240' in program inaltimi.cpp:18:2: error: stray '\302' in program inaltimi.cpp:18:2: error: stray '\240' in program inaltimi.cpp:18:2: error: stray '\302' in program inaltimi.cpp:18:2: error: stray '\240' in program inaltimi.cpp:19:6: error: stray '\302' in program for(j=1;j<=n;j++) ^ inaltimi.cpp:19:6: error: stray '\240' in program inaltimi.cpp:19:6: error: stray '\302' in program inaltimi.cpp:19:6: error: stray '\240' in program inaltimi.cpp:19:6: error: stray '\302' in program inaltimi.cpp:19:6: error: stray '\240' in program inaltimi.cpp:19:6: error: stray '\302' in program inaltimi.cpp:19:6: error: stray '\240' in program inaltimi.cpp:21:1: error: stray '\302' in program return 0;} ^ inaltimi.cpp:21:1: error: stray '\240' in program inaltimi.cpp:21:1: error: stray '\302' in program inaltimi.cpp:21:1: error: stray '\240' in program inaltimi.cpp:21:1: error: stray '\302' in program inaltimi.cpp:21: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ă.