#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 | #9284938 | Utilizator | |
Fișier | inaltimi.cpp | Dimensiune | 470 B |
Data încărcării | 22 Aprilie 2018, 20:37 | Scor / rezultat | Eroare de compilare |
inaltimi.cpp:2:9: error: #include expects "FILENAME" or <FILENAME> #include <bits/stdc++.h> ^ inaltimi.cpp:3:1: error: stray '\302' in program using namespace std; ^ 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 int n, i, x, minn = INT_MAX, maxx = - minn, v[10005]; ^ 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 int main() ^ inaltimi.cpp:5:1: error: stray '\240' in program inaltimi.cpp:7:1: error: stray '\302' in program cin >> n; ^ inaltimi.cpp:7:1: error: stray '\240' in program inaltimi.cpp:7:1: error: stray '\302' in program inaltimi.cpp:7:1: error: stray '\240' in program inaltimi.cpp:7:1: error: stray '\302' in program inaltimi.cpp:7:1: error: stray '\240' in program inaltimi.cpp:7:1: error: stray '\302' in program inaltimi.cpp:7:1: error: stray '\240' in program inaltimi.cpp:7:1: error: stray '\302' in program inaltimi.cpp:7:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program for(i = 1; i <= n; i ++) ^ inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:8:1: error: stray '\302' in program inaltimi.cpp:8:1: error: stray '\240' in program inaltimi.cpp:9:1: error: stray '\302' in program { ^ inaltimi.cpp:9:1: error: stray '\240' in program inaltimi.cpp:9:1: error: stray '\302' in program inaltimi.cpp:9:1: error: stray '\240' in program inaltimi.cpp:9:1: error: stray '\302' in program inaltimi.cpp:9:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program cin >> x; ^ inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:10:1: error: stray '\302' in program inaltimi.cpp:10:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program v[x] = i; ^ inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:11:1: error: stray '\302' in program inaltimi.cpp:11:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program if(x < minn) minn = x; ^ inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:12:1: error: stray '\302' in program inaltimi.cpp:12:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program if(x > maxx) maxx = x; ^ inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:13:1: error: stray '\302' in program inaltimi.cpp:13:1: error: stray '\240' in program inaltimi.cpp:14:1: error: stray '\302' in program } ^ inaltimi.cpp:14:1: error: stray '\240' in program inaltimi.cpp:14:1: error: stray '\302' in program inaltimi.cpp:14:1: error: stray '\240' in program inaltimi.cpp:14:1: error: stray '\302' in program inaltimi.cpp:14:1: error: stray '\240' in program inaltimi.cpp:15:1: error: stray '\302' in program for(i = minn; i <= maxx; 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:15:1: error: stray '\302' in program inaltimi.cpp:15:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program if(v[i] > 0) cout << v[i] << " "; ^ inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:16:1: error: stray '\302' in program inaltimi.cpp:16:1: error: stray '\240' in program inaltimi.cpp:17:1: error: stray '\302' in program return 0; ^ 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:4:27: error: 'INT_MAX' was not declared in this scope int n, i, x, minn = INT_MAX, maxx = - minn, v[10005]; ^ inaltimi.cpp: In function 'int main()': inaltimi.cpp:7:7: error: 'cin' was not declared in this scope cin >> n; ^ inaltimi.cpp:11:15: error: 'v' was not declared in this scope v[x] = i; ^ inaltimi.cpp:13:24: error: 'maxx' was not declared in this scope if(x > maxx) maxx = x; ^ inaltimi.cpp:15:31: error: 'maxx' was not declared in this scope for(i = minn; i <= maxx; i ++) ^ inaltimi.cpp:16:12: error: 'v' was not declared in this scope if(v[i] > 0) cout << v[i] << " "; ^ inaltimi.cpp:16:25: error: 'cout' was not declared in this scope if(v[i] > 0) cout << v[i] << " "; ^
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ă.