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