#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 | #54063366 | Utilizator | |
Fișier | laturitriunghi.cpp | Dimensiune | 519 B |
Data încărcării | 19 Noiembrie 2024, 02:03 | Scor / rezultat | Eroare de compilare |
laturitriunghi.cpp:4:1: error: stray '\302' in program { int n, i; ^ laturitriunghi.cpp:4:1: error: stray '\240' in program laturitriunghi.cpp:4:1: error: stray '\302' in program laturitriunghi.cpp:4:1: error: stray '\240' in program laturitriunghi.cpp:5:2: error: stray '\302' in program cin>>n; ^ laturitriunghi.cpp:5:2: error: stray '\240' in program laturitriunghi.cpp:6:2: error: stray '\302' in program for (i=1; i<n; i++) ^ laturitriunghi.cpp:6:2: error: stray '\240' in program laturitriunghi.cpp:6:2: error: stray '\302' in program laturitriunghi.cpp:6:2: error: stray '\240' in program laturitriunghi.cpp:7:6: error: stray '\302' in program cout<<" "; ^ laturitriunghi.cpp:7:6: error: stray '\240' in program laturitriunghi.cpp:7:6: error: stray '\302' in program laturitriunghi.cpp:7:6: error: stray '\240' in program laturitriunghi.cpp:8:2: error: stray '\302' in program cout<<"*"; ^ laturitriunghi.cpp:8:2: error: stray '\240' in program laturitriunghi.cpp:8:2: error: stray '\302' in program laturitriunghi.cpp:8:2: error: stray '\240' in program laturitriunghi.cpp:9:2: error: stray '\302' in program for (i=1; i<n; i++) ^ laturitriunghi.cpp:9:2: error: stray '\240' in program laturitriunghi.cpp:9:2: error: stray '\302' in program laturitriunghi.cpp:9:2: error: stray '\240' in program laturitriunghi.cpp:10:6: error: stray '\302' in program cout<<" "; ^ laturitriunghi.cpp:10:6: error: stray '\240' in program laturitriunghi.cpp:10:6: error: stray '\302' in program laturitriunghi.cpp:10:6: error: stray '\240' in program laturitriunghi.cpp:11:2: error: stray '\302' in program cout<<endl; ^ laturitriunghi.cpp:11:2: error: stray '\240' in program laturitriunghi.cpp:11:2: error: stray '\302' in program laturitriunghi.cpp:11:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program { for (int j=1; j<=2*n-1; j++) ^ laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:13:2: error: stray '\302' in program laturitriunghi.cpp:13:2: error: stray '\240' in program laturitriunghi.cpp:15:6: error: stray '\302' in program cout<<"*"; ^ laturitriunghi.cpp:15:6: error: stray '\240' in program laturitriunghi.cpp:15:6: error: stray '\302' in program laturitriunghi.cpp:15:6: error: stray '\240' in program laturitriunghi.cpp:15:6: error: stray '\302' in program laturitriunghi.cpp:15:6: error: stray '\240' in program laturitriunghi.cpp:16:6: error: stray '\302' in program else cout<<" "; ^ laturitriunghi.cpp:16:6: error: stray '\240' in program laturitriunghi.cpp:16:6: error: stray '\302' in program laturitriunghi.cpp:16:6: error: stray '\240' in program laturitriunghi.cpp:16:6: error: stray '\302' in program laturitriunghi.cpp:16:6: error: stray '\240' in program laturitriunghi.cpp:16:6: error: stray '\302' in program laturitriunghi.cpp:16:6: error: stray '\240' in program laturitriunghi.cpp:17:6: error: stray '\302' in program cout<<endl; } ^ laturitriunghi.cpp:17:6: error: stray '\240' in program laturitriunghi.cpp:17:6: error: stray '\302' in program laturitriunghi.cpp:17:6: error: stray '\240' in program laturitriunghi.cpp:17:6: error: stray '\302' in program laturitriunghi.cpp:17:6: error: stray '\240' in program laturitriunghi.cpp:18:2: error: stray '\302' in program if (n>1) ^ laturitriunghi.cpp:18:2: error: stray '\240' in program laturitriunghi.cpp:18:2: error: stray '\302' in program laturitriunghi.cpp:18:2: error: stray '\240' in program laturitriunghi.cpp:18:2: error: stray '\302' in program laturitriunghi.cpp:18:2: error: stray '\240' in program laturitriunghi.cpp:19:6: error: stray '\302' in program for (i=1; i<=n; i++) ^ laturitriunghi.cpp:19:6: error: stray '\240' in program laturitriunghi.cpp:19:6: error: stray '\302' in program laturitriunghi.cpp:19:6: error: stray '\240' in program laturitriunghi.cpp:19:6: error: stray '\302' in program laturitriunghi.cpp:19:6: error: stray '\240' in program laturitriunghi.cpp:19:6: error: stray '\302' in program laturitriunghi.cpp:19:6: error: stray '\240' in program laturitriunghi.cpp:20:6: error: stray '\302' in program cout<<"* "; ^ laturitriunghi.cpp:20:6: error: stray '\240' in program laturitriunghi.cpp:20:6: error: stray '\302' in program laturitriunghi.cpp:20:6: error: stray '\240' in program
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ă.