#2896
binar1
Pentru a converti un număr din zecimal în binar îl vom împărți la 2
în mod repetat, până ce obținem câtul zero. Apoi vom colecta resturile obținute de la ultimul către primul. Aceste resturi sunt cifrele din reprezentarea binară a numărului dat, de la stânga la dreapta. De exemplu, 13
(10)
= 1101
(2)
.
Scrieți un program care, pentru un șir dat de n numere naturale, rezolvă următoarele cerințe:
1) Determină cel mai mare dintre cele n
numere date ce are număr maxim de valori de 1
în reprezentarea binară.
2) Determină cea mai lungă secvență de numere care au număr egal de valori de 1
în reprezentarea binară. Dacă sunt mai multe astfel de secvențe de lungime maximă, se va alege cea mai din stânga. O secvență este un subșir de numere care apar pe poziții consecutive în șirul inițial.
Olimpiada Municipală Iași, clasa a IX-a
Problema | binar1 | Operații I/O |
![]() binar.in /binar.out
|
---|---|---|---|
Limita timp | 1.5 secunde | Limita memorie |
Total: 8 MB
/
Stivă 2 MB
|
Id soluție | #19500798 | Utilizator | |
Fișier | binar1.cpp | Dimensiune | 1.51 KB |
Data încărcării | 10 Decembrie 2019, 13:28 | Scor / rezultat | Eroare de compilare |
binar1.cpp:17:1: error: stray '\302' in program int c,b,nr=0; ^ binar1.cpp:17:1: error: stray '\240' in program binar1.cpp:17:1: error: stray '\302' in program binar1.cpp:17:1: error: stray '\240' in program binar1.cpp:19:1: error: stray '\302' in program c=n; ^ binar1.cpp:19:1: error: stray '\240' in program binar1.cpp:19:1: error: stray '\302' in program binar1.cpp:19:1: error: stray '\240' in program binar1.cpp:21:1: error: stray '\302' in program while(c>2) ^ binar1.cpp:21:1: error: stray '\240' in program binar1.cpp:21:1: error: stray '\302' in program binar1.cpp:21:1: error: stray '\240' in program binar1.cpp:23:1: error: stray '\302' in program { ^ binar1.cpp:23:1: error: stray '\240' in program binar1.cpp:23:1: error: stray '\302' in program binar1.cpp:23:1: error: stray '\240' in program binar1.cpp:25:1: error: stray '\302' in program b=c%2; ^ binar1.cpp:25:1: error: stray '\240' in program binar1.cpp:25:1: error: stray '\302' in program binar1.cpp:25:1: error: stray '\240' in program binar1.cpp:25:1: error: stray '\302' in program binar1.cpp:25:1: error: stray '\240' in program binar1.cpp:25:1: error: stray '\302' in program binar1.cpp:25:1: error: stray '\240' in program binar1.cpp:27:1: error: stray '\302' in program c=c/2; ^ binar1.cpp:27:1: error: stray '\240' in program binar1.cpp:27:1: error: stray '\302' in program binar1.cpp:27:1: error: stray '\240' in program binar1.cpp:27:1: error: stray '\302' in program binar1.cpp:27:1: error: stray '\240' in program binar1.cpp:27:1: error: stray '\302' in program binar1.cpp:27:1: error: stray '\240' in program binar1.cpp:29:1: error: stray '\302' in program if(b==1) ^ binar1.cpp:29:1: error: stray '\240' in program binar1.cpp:29:1: error: stray '\302' in program binar1.cpp:29:1: error: stray '\240' in program binar1.cpp:29:1: error: stray '\302' in program binar1.cpp:29:1: error: stray '\240' in program binar1.cpp:29:1: error: stray '\302' in program binar1.cpp:29:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program nr++; ^ binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:31:1: error: stray '\302' in program binar1.cpp:31:1: error: stray '\240' in program binar1.cpp:33:1: error: stray '\302' in program } ^ binar1.cpp:33:1: error: stray '\240' in program binar1.cpp:33:1: error: stray '\302' in program binar1.cpp:33:1: error: stray '\240' in program binar1.cpp:35:1: error: stray '\302' in program return nr; ^ binar1.cpp:35:1: error: stray '\240' in program binar1.cpp:35:1: error: stray '\302' in program binar1.cpp:35:1: error: stray '\240' in program binar1.cpp:43:1: error: stray '\302' in program f >> c; ^ binar1.cpp:43:1: error: stray '\240' in program binar1.cpp:43:1: error: stray '\302' in program binar1.cpp:43:1: error: stray '\240' in program binar1.cpp:45:1: error: stray '\302' in program f >> n; ^ binar1.cpp:45:1: error: stray '\240' in program binar1.cpp:45:1: error: stray '\302' in program binar1.cpp:45:1: error: stray '\240' in program binar1.cpp:47:1: error: stray '\302' in program s=-1; ^ binar1.cpp:47:1: error: stray '\240' in program binar1.cpp:47:1: error: stray '\302' in program binar1.cpp:47:1: error: stray '\240' in program binar1.cpp:49:1: error: stray '\302' in program r=1; ^ binar1.cpp:49:1: error: stray '\240' in program binar1.cpp:49:1: error: stray '\302' in program binar1.cpp:49:1: error: stray '\240' in program binar1.cpp:51:1: error: stray '\302' in program st=1; ^ binar1.cpp:51:1: error: stray '\240' in program binar1.cpp:51:1: error: stray '\302' in program binar1.cpp:51:1: error: stray '\240' in program binar1.cpp:53:1: error: stray '\302' in program for(i=1;i<=n;++i) ^ binar1.cpp:53:1: error: stray '\240' in program binar1.cpp:53:1: error: stray '\302' in program binar1.cpp:53:1: error: stray '\240' in program binar1.cpp:55:1: error: stray '\302' in program { ^ binar1.cpp:55:1: error: stray '\240' in program binar1.cpp:55:1: error: stray '\302' in program binar1.cpp:55:1: error: stray '\240' in program binar1.cpp:57:1: error: stray '\302' in program f >> v; ^ binar1.cpp:57:1: error: stray '\240' in program binar1.cpp:57:1: error: stray '\302' in program binar1.cpp:57:1: error: stray '\240' in program binar1.cpp:57:1: error: stray '\302' in program binar1.cpp:57:1: error: stray '\240' in program binar1.cpp:57:1: error: stray '\302' in program binar1.cpp:57:1: error: stray '\240' in program binar1.cpp:59:1: error: stray '\302' in program if(binar(v)>ma) ^ binar1.cpp:59:1: error: stray '\240' in program binar1.cpp:59:1: error: stray '\302' in program binar1.cpp:59:1: error: stray '\240' in program binar1.cpp:59:1: error: stray '\302' in program binar1.cpp:59:1: error: stray '\240' in program binar1.cpp:59:1: error: stray '\302' in program binar1.cpp:59:1: error: stray '\240' in program binar1.cpp:61:1: error: stray '\302' in program { ^ binar1.cpp:61:1: error: stray '\240' in program binar1.cpp:61:1: error: stray '\302' in program binar1.cpp:61:1: error: stray '\240' in program binar1.cpp:61:1: error: stray '\302' in program binar1.cpp:61:1: error: stray '\240' in program binar1.cpp:61:1: error: stray '\302' in program binar1.cpp:61:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program ma=binar(v); ^ binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:63:1: error: stray '\302' in program binar1.cpp:63:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program k=v; ^ binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:65:1: error: stray '\302' in program binar1.cpp:65:1: error: stray '\240' in program binar1.cpp:67:1: error: stray '\302' in program } ^ binar1.cpp:67:1: error: stray '\240' in program binar1.cpp:67:1: error: stray '\302' in program binar1.cpp:67:1: error: stray '\240' in program binar1.cpp:67:1: error: stray '\302' in program binar1.cpp:67:1: error: stray '\240' in program binar1.cpp:67:1: error: stray '\302' in program binar1.cpp:67:1: error: stray '\240' in program binar1.cpp:69:1: error: stray '\302' in program p=binar(v); ^ binar1.cpp:69:1: error: stray '\240' in program binar1.cpp:69:1: error: stray '\302' in program binar1.cpp:69:1: error: stray '\240' in program binar1.cpp:69:1: error: stray '\302' in program binar1.cpp:69:1: error: stray '\240' in program binar1.cpp:69:1: error: stray '\302' in program binar1.cpp:69:1: error: stray '\240' in program binar1.cpp:71:1: error: stray '\302' in program if(s==-1) ^ binar1.cpp:71:1: error: stray '\240' in program binar1.cpp:71:1: error: stray '\302' in program binar1.cpp:71:1: error: stray '\240' in program binar1.cpp:71:1: error: stray '\302' in program binar1.cpp:71:1: error: stray '\240' in program binar1.cpp:71:1: error: stray '\302' in program binar1.cpp:71:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program s=p; ^ binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:73:1: error: stray '\302' in program binar1.cpp:73:1: error: stray '\240' in program binar1.cpp:75:1: error: stray '\302' in program else ^ binar1.cpp:75:1: error: stray '\240' in program binar1.cpp:75:1: error: stray '\302' in program binar1.cpp:75:1: error: stray '\240' in program binar1.cpp:75:1: error: stray '\302' in program binar1.cpp:75:1: error: stray '\240' in program binar1.cpp:75:1: error: stray '\302' in program binar1.cpp:75:1: error: stray '\240' in program binar1.cpp:77:1: error: stray '\302' in program { ^ binar1.cpp:77:1: error: stray '\240' in program binar1.cpp:77:1: error: stray '\302' in program binar1.cpp:77:1: error: stray '\240' in program binar1.cpp:77:1: error: stray '\302' in program binar1.cpp:77:1: error: stray '\240' in program binar1.cpp:77:1: error: stray '\302' in program binar1.cpp:77:1: error: stray '\240' in program binar1.cpp:79:1: error: stray '\302' in program if(p==s) ^ binar1.cpp:79:1: error: stray '\240' in program binar1.cpp:79:1: error: stray '\302' in program binar1.cpp:79:1: error: stray '\240' in program binar1.cpp:79:1: error: stray '\302' in program binar1.cpp:79:1: error: stray '\240' in program binar1.cpp:79:1: error: stray '\302' in program binar1.cpp:79:1: error: stray '\240' in program binar1.cpp:81:1: error: stray '\302' in program { ^ binar1.cpp:81:1: error: stray '\240' in program binar1.cpp:81:1: error: stray '\302' in program binar1.cpp:81:1: error: stray '\240' in program binar1.cpp:81:1: error: stray '\302' in program binar1.cpp:81:1: error: stray '\240' in program binar1.cpp:81:1: error: stray '\302' in program binar1.cpp:81:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program nrs++; ^ binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:83:1: error: stray '\302' in program binar1.cpp:83:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program s=p; ^ binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:85:1: error: stray '\302' in program binar1.cpp:85:1: error: stray '\240' in program binar1.cpp:87:1: error: stray '\302' in program } ^ binar1.cpp:87:1: error: stray '\240' in program binar1.cpp:87:1: error: stray '\302' in program binar1.cpp:87:1: error: stray '\240' in program binar1.cpp:87:1: error: stray '\302' in program binar1.cpp:87:1: error: stray '\240' in program binar1.cpp:87:1: error: stray '\302' in program binar1.cpp:87:1: error: stray '\240' in program binar1.cpp:89:1: error: stray '\302' in program else ^ binar1.cpp:89:1: error: stray '\240' in program binar1.cpp:89:1: error: stray '\302' in program binar1.cpp:89:1: error: stray '\240' in program binar1.cpp:89:1: error: stray '\302' in program binar1.cpp:89:1: error: stray '\240' in program binar1.cpp:89:1: error: stray '\302' in program binar1.cpp:89:1: error: stray '\240' in program binar1.cpp:91:1: error: stray '\302' in program if(nrs>=mas) ^ binar1.cpp:91:1: error: stray '\240' in program binar1.cpp:91:1: error: stray '\302' in program binar1.cpp:91:1: error: stray '\240' in program binar1.cpp:91:1: error: stray '\302' in program binar1.cpp:91:1: error: stray '\240' in program binar1.cpp:91:1: error: stray '\302' in program binar1.cpp:91:1: error: stray '\240' in program binar1.cpp:93:1: error: stray '\302' in program { ^ binar1.cpp:93:1: error: stray '\240' in program binar1.cpp:93:1: error: stray '\302' in program binar1.cpp:93:1: error: stray '\240' in program binar1.cpp:93:1: error: stray '\302' in program binar1.cpp:93:1: error: stray '\240' in program binar1.cpp:93:1: error: stray '\302' in program binar1.cpp:93:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program mas=nrs; ^ binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:95:1: error: stray '\302' in program binar1.cpp:95:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program st=r; ^ binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:97:1: error: stray '\302' in program binar1.cpp:97:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program r=r+nrs; ^ binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:99:1: error: stray '\302' in program binar1.cpp:99:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program nrs=1; ^ binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:101:1: error: stray '\302' in program binar1.cpp:101:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program s=p; ^ binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:103:1: error: stray '\302' in program binar1.cpp:103:1: error: stray '\240' in program binar1.cpp:105:1: error: stray '\302' in program } ^ binar1.cpp:105:1: error: stray '\240' in program binar1.cpp:105:1: error: stray '\302' in program binar1.cpp:105:1: error: stray '\240' in program binar1.cpp:105:1: error: stray '\302' in program binar1.cpp:105:1: error: stray '\240' in program binar1.cpp:105:1: error: stray '\302' in program binar1.cpp:105:1: error: stray '\240' in program binar1.cpp:107:1: error: stray '\302' in program else ^ binar1.cpp:107:1: error: stray '\240' in program binar1.cpp:107:1: error: stray '\302' in program binar1.cpp:107:1: error: stray '\240' in program binar1.cpp:107:1: error: stray '\302' in program binar1.cpp:107:1: error: stray '\240' in program binar1.cpp:107:1: error: stray '\302' in program binar1.cpp:107:1: error: stray '\240' in program binar1.cpp:109:1: error: stray '\302' in program { ^ binar1.cpp:109:1: error: stray '\240' in program binar1.cpp:109:1: error: stray '\302' in program binar1.cpp:109:1: error: stray '\240' in program binar1.cpp:109:1: error: stray '\302' in program binar1.cpp:109:1: error: stray '\240' in program binar1.cpp:109:1: error: stray '\302' in program binar1.cpp:109:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program r=r+nrs; ^ binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:111:1: error: stray '\302' in program binar1.cpp:111:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program nrs=1; ^ binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:113:1: error: stray '\302' in program binar1.cpp:113:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program s=p; ^ binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:115:1: error: stray '\302' in program binar1.cpp:115:1: error: stray '\240' in program binar1.cpp:117:1: error: stray '\302' in program } ^ binar1.cpp:117:1: error: stray '\240' in program binar1.cpp:117:1: error: stray '\302' in program binar1.cpp:117:1: error: stray '\240' in program binar1.cpp:117:1: error: stray '\302' in program binar1.cpp:117:1: error: stray '\240' in program binar1.cpp:117:1: error: stray '\302' in program binar1.cpp:117:1: error: stray '\240' in program binar1.cpp:119:1: error: stray '\302' in program } ^ binar1.cpp:119:1: error: stray '\240' in program binar1.cpp:119:1: error: stray '\302' in program binar1.cpp:119:1: error: stray '\240' in program binar1.cpp:119:1: error: stray '\302' in program binar1.cpp:119:1: error: stray '\240' in program binar1.cpp:119:1: error: stray '\302' in program binar1.cpp:119:1: error: stray '\240' in program binar1.cpp:121:1: error: stray '\302' in program if(i==n && mas==-999) ^ binar1.cpp:121:1: error: stray '\240' in program binar1.cpp:121:1: error: stray '\302' in program binar1.cpp:121:1: error: stray '\240' in program binar1.cpp:121:1: error: stray '\302' in program binar1.cpp:121:1: error: stray '\240' in program binar1.cpp:121:1: error: stray '\302' in program binar1.cpp:121:1: error: stray '\240' in program binar1.cpp:123:1: error: stray '\302' in program { ^ binar1.cpp:123:1: error: stray '\240' in program binar1.cpp:123:1: error: stray '\302' in program binar1.cpp:123:1: error: stray '\240' in program binar1.cpp:123:1: error: stray '\302' in program binar1.cpp:123:1: error: stray '\240' in program binar1.cpp:123:1: error: stray '\302' in program binar1.cpp:123:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program st=r; ^ binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:125:1: error: stray '\302' in program binar1.cpp:125:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program mas=nrs; ^ binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:127:1: error: stray '\302' in program binar1.cpp:127:1: error: stray '\240' in program binar1.cpp:129:1: error: stray '\302' in program } ^ binar1.cpp:129:1: error: stray '\240' in program binar1.cpp:129:1: error: stray '\302' in program binar1.cpp:129:1: error: stray '\240' in program binar1.cpp:129:1: error: stray '\302' in program binar1.cpp:129:1: error: stray '\240' in program binar1.cpp:129:1: error: stray '\302' in program binar1.cpp:129:1: error: stray '\240' in program binar1.cpp:131:1: error: stray '\302' in program } ^ binar1.cpp:131:1: error: stray '\240' in program binar1.cpp:131:1: error: stray '\302' in program binar1.cpp:131:1: error: stray '\240' in program binar1.cpp:133:1: error: stray '\302' in program if(c==1) ^ binar1.cpp:133:1: error: stray '\240' in program binar1.cpp:133:1: error: stray '\302' in program binar1.cpp:133:1: error: stray '\240' in program binar1.cpp:135:1: error: stray '\302' in program g << k; ^ binar1.cpp:135:1: error: stray '\240' in program binar1.cpp:135:1: error: stray '\302' in program binar1.cpp:135:1: error: stray '\240' in program binar1.cpp:137:1: error: stray '\302' in program else ^ binar1.cpp:137:1: error: stray '\240' in program binar1.cpp:137:1: error: stray '\302' in program binar1.cpp:137:1: error: stray '\240' in program binar1.cpp:139:1: error: stray '\302' in program if(c==2) ^ binar1.cpp:139:1: error: stray '\240' in program binar1.cpp:139:1: error: stray '\302' in program binar1.cpp:139:1: error: stray '\240' in program binar1.cpp:141:1: error: stray '\302' in program g << mas << " " << st; ^ binar1.cpp:141:1: error: stray '\240' in program binar1.cpp:141:1: error: stray '\302' in program binar1.cpp:141:1: error: stray '\240' in program binar1.cpp:143:1: error: stray '\302' in program return 0; ^ binar1.cpp:143:1: error: stray '\240' in program binar1.cpp:143:1: error: stray '\302' in program binar1.cpp:143:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema binar1 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ă.