#458
Patrat1
Se citește numărul natural impar n
, şi două caractere c
şi d
. Să se afișeze următorul pătrat, format din n
linii şi n
coloane, în care cele două caractere alternează:
cdc...dc dcd...cd .... dcd...cd cdc...dc
Problema | Patrat1 | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #16609680 | Utilizator | |
Fișier | patrat1.cpp | Dimensiune | 387 B |
Data încărcării | 11 Septembrie 2019, 08:43 | Scor / rezultat | Eroare de compilare |
patrat1.cpp:2:1: error: stray '\302' in program using namespace std ; ^ patrat1.cpp:2:1: error: stray '\240' in program patrat1.cpp:6:1: error: stray '\302' in program char c ,d; ^ patrat1.cpp:6:1: error: stray '\240' in program patrat1.cpp:7:1: error: stray '\302' in program cin>>n; ^ patrat1.cpp:7:1: error: stray '\240' in program patrat1.cpp:7:1: error: stray '\302' in program patrat1.cpp:7:1: error: stray '\240' in program patrat1.cpp:7:1: error: stray '\302' in program patrat1.cpp:7:1: error: stray '\240' in program patrat1.cpp:8:1: error: stray '\302' in program cin>>c; ^ patrat1.cpp:8:1: error: stray '\240' in program patrat1.cpp:8:1: error: stray '\302' in program patrat1.cpp:8:1: error: stray '\240' in program patrat1.cpp:8:1: error: stray '\302' in program patrat1.cpp:8:1: error: stray '\240' in program patrat1.cpp:9:1: error: stray '\302' in program cin>>d; ^ patrat1.cpp:9:1: error: stray '\240' in program patrat1.cpp:9:1: error: stray '\302' in program patrat1.cpp:9:1: error: stray '\240' in program patrat1.cpp:9:1: error: stray '\302' in program patrat1.cpp:9:1: error: stray '\240' in program patrat1.cpp:10:1: error: stray '\302' in program for(i=1;i<=n;i++){ ^ patrat1.cpp:10:1: error: stray '\240' in program patrat1.cpp:10:1: error: stray '\302' in program patrat1.cpp:10:1: error: stray '\240' in program patrat1.cpp:11:1: error: stray '\302' in program for(j=1;j<=n;j++) ^ patrat1.cpp:11:1: error: stray '\240' in program patrat1.cpp:11:1: error: stray '\302' in program patrat1.cpp:11:1: error: stray '\240' in program patrat1.cpp:11:1: error: stray '\302' in program patrat1.cpp:11:1: error: stray '\240' in program patrat1.cpp:11:1: error: stray '\302' in program patrat1.cpp:11:1: error: stray '\240' in program patrat1.cpp:11:1: error: stray '\302' in program patrat1.cpp:11:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program if((i+j)%2==0) ^ patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:12:1: error: stray '\302' in program patrat1.cpp:12:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program cout<<c; ^ patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:13:1: error: stray '\302' in program patrat1.cpp:13:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program else ^ patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:14:1: error: stray '\302' in program patrat1.cpp:14:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program cout<<d; ^ patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:15:1: error: stray '\302' in program patrat1.cpp:15:1: error: stray '\240' in program patrat1.cpp:16:1: error: stray '\302' in program cout<<endl; }} ^ patrat1.cpp:16:1: error: stray '\240' in program patrat1.cpp:16:1: error: stray '\302' in program patrat1.cpp:16:1: error: stray '\240' in program patrat1.cpp:16:1: error: stray '\302' in program patrat1.cpp:16:1: error: stray '\240' in program patrat1.cpp:16:1: error: stray '\302' in program patrat1.cpp:16:1: error: stray '\240' in program patrat1.cpp:16:1: error: stray '\302' in program patrat1.cpp:16:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Patrat1 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ă.