#1376
LaturiTriunghi
Se dă n
. Afișați un triunghi cu latura de n
steluțe gol înăuntru.
Problema | LaturiTriunghi | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.01 secunde | Limita memorie |
Total: 10 MB
/
Stivă 2 MB
|
Id soluție | #54030905 | Utilizator | |
Fișier | laturitriunghi.cpp | Dimensiune | 2.37 KB |
Data încărcării | 18 Noiembrie 2024, 11:54 | Scor / rezultat | Eroare de compilare |
laturitriunghi.cpp:1:1: error: 'include' does not name a type include <bits/stdc++.h> ^ laturitriunghi.cpp: In function 'int main()': laturitriunghi.cpp:6:5: error: 'cin' was not declared in this scope cin >> n; ^ laturitriunghi.cpp:8:5: error: 'cout' was not declared in this scope cout << "*"; ^ laturitriunghi.cpp:11:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:11:25: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:16:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:16:26: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:22:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:22:27: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:29:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:29:28: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:37:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:37:29: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:46:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:46:30: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:56:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:56:31: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:67:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:67:32: error: 'endl' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:79:9: error: 'cout' was not declared in this scope cout << " *" << endl; ^ laturitriunghi.cpp:79:33: error: 'endl' was not declared in this scope cout << " *" << endl; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema LaturiTriunghi 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ă.