#1191
Arhitectura
Se citesc n
numere naturale reprezentând înălțimile a n
clădiri. Cerința problemei este de a realiza un proiect de arhitectură în care clădirile sunt ordonate descrescător după înălțimea lor.
Problema | Arhitectura | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #9285022 | Utilizator | |
Fișier | arhitectura.cpp | Dimensiune | 491 B |
Data încărcării | 22 Aprilie 2018, 20:46 | Scor / rezultat | Eroare de compilare |
arhitectura.cpp:5:1: error: stray '\302' in program int n; ^ arhitectura.cpp:5:1: error: stray '\240' in program arhitectura.cpp:6:1: error: stray '\302' in program cin >> n; ^ arhitectura.cpp:6:1: error: stray '\240' in program arhitectura.cpp:7:1: error: stray '\302' in program for (int i = 0; i < n ; i++) ^ arhitectura.cpp:7:1: error: stray '\240' in program arhitectura.cpp:8:1: error: stray '\302' in program cin >> v[i]; ^ arhitectura.cpp:8:1: error: stray '\240' in program arhitectura.cpp:8:1: error: stray '\302' in program arhitectura.cpp:8:1: error: stray '\240' in program arhitectura.cpp:8:1: error: stray '\302' in program arhitectura.cpp:8:1: error: stray '\240' in program arhitectura.cpp:9:1: error: stray '\302' in program int nn = n - 1, aux, poz; ^ arhitectura.cpp:9:1: error: stray '\240' in program arhitectura.cpp:10:1: error: stray '\302' in program while(nn) { ^ arhitectura.cpp:10:1: error: stray '\240' in program arhitectura.cpp:11:1: error: stray '\302' in program poz = nn; ^ arhitectura.cpp:11:1: error: stray '\240' in program arhitectura.cpp:11:1: error: stray '\302' in program arhitectura.cpp:11:1: error: stray '\240' in program arhitectura.cpp:11:1: error: stray '\302' in program arhitectura.cpp:11:1: error: stray '\240' in program arhitectura.cpp:12:1: error: stray '\302' in program for (int i = 0; i < nn ; i++) ^ arhitectura.cpp:12:1: error: stray '\240' in program arhitectura.cpp:12:1: error: stray '\302' in program arhitectura.cpp:12:1: error: stray '\240' in program arhitectura.cpp:12:1: error: stray '\302' in program arhitectura.cpp:12:1: error: stray '\240' in program arhitectura.cpp:13:1: error: stray '\302' in program if(v[i] < v[poz]) ^ arhitectura.cpp:13:1: error: stray '\240' in program arhitectura.cpp:13:1: error: stray '\302' in program arhitectura.cpp:13:1: error: stray '\240' in program arhitectura.cpp:13:1: error: stray '\302' in program arhitectura.cpp:13:1: error: stray '\240' in program arhitectura.cpp:13:1: error: stray '\302' in program arhitectura.cpp:13:1: error: stray '\240' in program arhitectura.cpp:13:1: error: stray '\302' in program arhitectura.cpp:13:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program poz = i; ^ arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:14:1: error: stray '\302' in program arhitectura.cpp:14:1: error: stray '\240' in program arhitectura.cpp:15:1: error: stray '\302' in program aux = v[nn]; ^ arhitectura.cpp:15:1: error: stray '\240' in program arhitectura.cpp:15:1: error: stray '\302' in program arhitectura.cpp:15:1: error: stray '\240' in program arhitectura.cpp:15:1: error: stray '\302' in program arhitectura.cpp:15:1: error: stray '\240' in program arhitectura.cpp:15:1: error: stray '\302' in program arhitectura.cpp:15:1: error: stray '\240' in program arhitectura.cpp:16:1: error: stray '\302' in program v[nn] = v[poz]; ^ arhitectura.cpp:16:1: error: stray '\240' in program arhitectura.cpp:16:1: error: stray '\302' in program arhitectura.cpp:16:1: error: stray '\240' in program arhitectura.cpp:16:1: error: stray '\302' in program arhitectura.cpp:16:1: error: stray '\240' in program arhitectura.cpp:17:1: error: stray '\302' in program v[poz] = aux; ^ arhitectura.cpp:17:1: error: stray '\240' in program arhitectura.cpp:17:1: error: stray '\302' in program arhitectura.cpp:17:1: error: stray '\240' in program arhitectura.cpp:17:1: error: stray '\302' in program arhitectura.cpp:17:1: error: stray '\240' in program arhitectura.cpp:18:1: error: stray '\302' in program nn--; ^ arhitectura.cpp:18:1: error: stray '\240' in program arhitectura.cpp:18:1: error: stray '\302' in program arhitectura.cpp:18:1: error: stray '\240' in program arhitectura.cpp:18:1: error: stray '\302' in program arhitectura.cpp:18:1: error: stray '\240' in program arhitectura.cpp:19:1: error: stray '\302' in program } ^ arhitectura.cpp:19:1: error: stray '\240' in program arhitectura.cpp:20:1: error: stray '\302' in program for (int i = 0; i < n ; i++) ^ arhitectura.cpp:20:1: error: stray '\240' in program arhitectura.cpp:20:1: error: stray '\302' in program arhitectura.cpp:20:1: error: stray '\240' in program arhitectura.cpp:21:1: error: stray '\302' in program cout << v[i] << " "; ^ arhitectura.cpp:21:1: error: stray '\240' in program arhitectura.cpp:21:1: error: stray '\302' in program arhitectura.cpp:21:1: error: stray '\240' in program arhitectura.cpp:21:1: error: stray '\302' in program arhitectura.cpp:21:1: error: stray '\240' in program arhitectura.cpp:21:1: error: stray '\302' in program arhitectura.cpp:21:1: error: stray '\240' in program arhitectura.cpp:22:1: error: stray '\302' in program return 0; ^ arhitectura.cpp:22:1: error: stray '\240' in program arhitectura.cpp:22:1: error: stray '\302' in program arhitectura.cpp:22:1: error: stray '\240' in program arhitectura.cpp:22:1: error: stray '\302' in program arhitectura.cpp:22:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Arhitectura 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ă.