#351
Piramida
Se citește numărul natural n
. Să se afișeze următoarea piramidă de numere:
1 1 2 1 2 3 ....... 1 2 3 ... n
Problema | Piramida | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #21072742 | Utilizator | |
Fișier | piramida.cpp | Dimensiune | 347 B |
Data încărcării | 19 Februarie 2020, 11:03 | Scor / rezultat | Eroare de compilare |
piramida.cpp:4:1: error: stray '\302' in program int n; ^ piramida.cpp:4:1: error: stray '\240' in program piramida.cpp:4:1: error: stray '\302' in program piramida.cpp:4:1: error: stray '\240' in program piramida.cpp:5:1: error: stray '\302' in program cin >> n; ^ piramida.cpp:5:1: error: stray '\240' in program piramida.cpp:5:1: error: stray '\302' in program piramida.cpp:5:1: error: stray '\240' in program piramida.cpp:6:1: error: stray '\302' in program for(int i = 0; i < n; i++) { ^ piramida.cpp:6:1: error: stray '\240' in program piramida.cpp:6:1: error: stray '\302' in program piramida.cpp:6:1: error: stray '\240' in program piramida.cpp:7:1: error: stray '\302' in program for(int j = 0; j <= i; j++) { ^ piramida.cpp:7:1: error: stray '\240' in program piramida.cpp:7:1: error: stray '\302' in program piramida.cpp:7:1: error: stray '\240' in program piramida.cpp:7:1: error: stray '\302' in program piramida.cpp:7:1: error: stray '\240' in program piramida.cpp:7:1: error: stray '\302' in program piramida.cpp:7:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program cout << '*'; ^ piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:8:1: error: stray '\302' in program piramida.cpp:8:1: error: stray '\240' in program piramida.cpp:9:1: error: stray '\302' in program } ^ piramida.cpp:9:1: error: stray '\240' in program piramida.cpp:9:1: error: stray '\302' in program piramida.cpp:9:1: error: stray '\240' in program piramida.cpp:9:1: error: stray '\302' in program piramida.cpp:9:1: error: stray '\240' in program piramida.cpp:9:1: error: stray '\302' in program piramida.cpp:9:1: error: stray '\240' in program piramida.cpp:10:1: error: stray '\302' in program cout << endl; ^ piramida.cpp:10:1: error: stray '\240' in program piramida.cpp:10:1: error: stray '\302' in program piramida.cpp:10:1: error: stray '\240' in program piramida.cpp:10:1: error: stray '\302' in program piramida.cpp:10:1: error: stray '\240' in program piramida.cpp:10:1: error: stray '\302' in program piramida.cpp:10:1: error: stray '\240' in program piramida.cpp:11:1: error: stray '\302' in program } ^ piramida.cpp:11:1: error: stray '\240' in program piramida.cpp:11:1: error: stray '\302' in program piramida.cpp:11:1: error: stray '\240' in program piramida.cpp:12:1: error: stray '\302' in program return 0; ^ piramida.cpp:12:1: error: stray '\240' in program piramida.cpp:12:1: error: stray '\302' in program piramida.cpp:12:1: error: stray '\240' in program piramida.cpp:15:1: error: stray '\310' in program Citește mai multe pe Brainly.ro - https://brainly.ro/tema/1483718#readmore ^ piramida.cpp:15:1: error: stray '\231' in program piramida.cpp:15:1: error: 'Cite' does not name a type
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Piramida 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ă.