#2281
Pentru un număr n
, o săgeată este formată din n
steluțe (*
) pe fiecare linie și 2*n - 1
linii.
Admiterea la clasa de Excelență din Bistrița, 2017
Problema | Sageata | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58195700 | Utilizator | |
Fișier | sageata.cpp | Dimensiune | 584 B |
Data încărcării | 19 Mai 2025, 20:30 | Scor / rezultat | Eroare de compilare |
sageata.cpp:1:1: error: 'include' does not name a type include <iostream> ^ sageata.cpp: In function 'int main()': sageata.cpp:5:6: error: 'cin' was not declared in this scope cin >> n; ^ sageata.cpp:8:18: error: 'cout' was not declared in this scope cout << ' '; ^ sageata.cpp:10:18: error: 'cout' was not declared in this scope cout << '*'; ^ sageata.cpp:11:25: error: 'cout' was not declared in this scope s = s + 1; cout << endl; ^ sageata.cpp:11:33: error: 'endl' was not declared in this scope s = s + 1; cout << endl; ^ sageata.cpp:15:18: error: 'cout' was not declared in this scope cout << ' '; ^ sageata.cpp:17:18: error: 'cout' was not declared in this scope cout << '*'; ^ sageata.cpp:18:19: error: 'cout' was not declared in this scope s--; cout << endl; ^ sageata.cpp:18:27: error: 'endl' was not declared in this scope s--; cout << endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Sageata 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ă.