#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 | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9284932 | Utilizator | |
Fișier | inaltimi.cpp | Dimensiune | 555 B |
Data încărcării | 22 Aprilie 2018, 20:36 | 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:6: error: stray '\302' in program min=a[i]; ^ inaltimi.cpp:11:6: error: stray '\240' in program inaltimi.cpp:11:6: error: stray '\302' in program inaltimi.cpp:11:6: error: stray '\240' in program inaltimi.cpp:12:6: error: stray '\302' in program c=i; ^ inaltimi.cpp:12:6: error: stray '\240' in program inaltimi.cpp:12:6: error: stray '\302' in program inaltimi.cpp:12:6: error: stray '\240' in program inaltimi.cpp:12:6: error: stray '\302' in program inaltimi.cpp:12:6: error: stray '\240' in program inaltimi.cpp:13:6: error: stray '\302' in program for(j=i;j<=n;j++) ^ inaltimi.cpp:13:6: error: stray '\240' in program inaltimi.cpp:13:6: error: stray '\302' in program inaltimi.cpp:13:6: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program } ^ inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program inaltimi.cpp:17:1: error: stray '\240' in program inaltimi.cpp:18:6: error: stray '\302' in program aux=a[i]; ^ inaltimi.cpp:18:6: error: stray '\240' in program inaltimi.cpp:18:6: error: stray '\302' in program inaltimi.cpp:18:6: error: stray '\240' in program inaltimi.cpp:18:6: error: stray '\302' in program inaltimi.cpp:18:6: error: stray '\240' in program inaltimi.cpp:19:6: error: stray '\302' in program a[i]=a[c]; ^ 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:20:6: error: stray '\302' in program a[c]=aux; } ^ inaltimi.cpp:20:6: error: stray '\240' in program inaltimi.cpp:20:6: error: stray '\302' in program inaltimi.cpp:20:6: error: stray '\240' in program inaltimi.cpp:20:6: error: stray '\302' in program inaltimi.cpp:20:6: error: stray '\240' in program inaltimi.cpp:20:6: error: stray '\302' in program inaltimi.cpp:20:6: error: stray '\240' in program inaltimi.cpp:21:2: error: stray '\302' in program for(i=1;i<=n;i++) ^ inaltimi.cpp:21:2: error: stray '\240' in program inaltimi.cpp:21:2: error: stray '\302' in program inaltimi.cpp:21:2: error: stray '\240' in program inaltimi.cpp:21:2: error: stray '\302' in program inaltimi.cpp:21:2: error: stray '\240' in program inaltimi.cpp:21:2: error: stray '\302' in program inaltimi.cpp:21:2: error: stray '\240' in program inaltimi.cpp:22:6: error: stray '\302' in program for(j=1;j<=n;j++) ^ inaltimi.cpp:22:6: error: stray '\240' in program inaltimi.cpp:22:6: error: stray '\302' in program inaltimi.cpp:22:6: error: stray '\240' in program inaltimi.cpp:22:6: error: stray '\302' in program inaltimi.cpp:22:6: error: stray '\240' in program inaltimi.cpp:22:6: error: stray '\302' in program inaltimi.cpp:22:6: error: stray '\240' in program inaltimi.cpp:24:1: error: stray '\302' in program return 0;} ^ inaltimi.cpp:24:1: error: stray '\240' in program inaltimi.cpp:24:1: error: stray '\302' in program inaltimi.cpp:24:1: error: stray '\240' in program inaltimi.cpp:24:1: error: stray '\302' in program inaltimi.cpp:24: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ă.