#1393
Se citește un număr natural n cu o cifră. Afișați pe ecran o figură sub forma de romb formata cu numerele naturale de la 1 la n, ca în exemplu.
| Problema | DesenRomb | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64885104 | Utilizator | |
| Fișier | desenromb.cpp | Dimensiune | 593 B |
| Data încărcării | 09 Iunie 2026, 14:12 | Scor/rezultat | Eroare de compilare |
desenromb.cpp:1:1: error: ‘include’ does not name a type 1 | include <iostream> | ^~~~~~~ desenromb.cpp: In function ‘int main()’: desenromb.cpp:6:5: error: ‘cin’ was not declared in this scope 6 | cin >> n; | ^~~ desenromb.cpp:10:13: error: ‘cout’ was not declared in this scope 10 | cout << " "; | ^~~~ desenromb.cpp:14:13: error: ‘cout’ was not declared in this scope 14 | cout << i; | ^~~~ desenromb.cpp:16:9: error: ‘cout’ was not declared in this scope 16 | cout << endl; | ^~~~ desenromb.cpp:16:17: error: ‘endl’ was not declared in this scope 16 | cout << endl; | ^~~~ desenromb.cpp:23:13: error: ‘cout’ was not declared in this scope 23 | cout << " "; | ^~~~ desenromb.cpp:27:13: error: ‘cout’ was not declared in this scope 27 | cout << i; | ^~~~ desenromb.cpp:29:9: error: ‘cout’ was not declared in this scope 29 | cout << endl; | ^~~~ desenromb.cpp:29:17: error: ‘endl’ was not declared in this scope 29 | cout << endl; | ^~~~
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema DesenRomb 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ă.