#2996
paritar
Un șir format din 2•n
numere naturale se numește paritar dacă fiecare dintre primii săi n
termeni fie are aceeași paritate cu oricare dintre ultimii săi n
termeni, fie este strict mai mic decât oricare număr de paritate diferită aflat printre aceștia. Dându-se un șir de 2•n
numere naturale, să se afișeze mesajul DA
, în cazul în care șirul aflat în fișier este paritar, sau mesajul NU
, în caz contrar. Proiectați un algoritm eficient din punctul de vedere al timpului de executare și al memoriei utilizate.
Simulare bacalaureat 2019
Problema | paritar | Operații I/O |
paritar.in /paritar.out
|
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 2 MB
/
Stivă 1 MB
|
Id soluție | #15280924 | Utilizator | |
Fișier | paritar.cpp | Dimensiune | 1.89 KB |
Data încărcării | 08 Aprilie 2019, 12:34 | Scor / rezultat | Eroare de compilare |
paritar.cpp:15:2: error: stray '\302' in program f >> n; ^ paritar.cpp:15:2: error: stray '\240' in program paritar.cpp:15:2: error: stray '\302' in program paritar.cpp:15:2: error: stray '\240' in program paritar.cpp:17:2: error: stray '\302' in program for (i=1; i<=n; ++i) ^ paritar.cpp:17:2: error: stray '\240' in program paritar.cpp:17:2: error: stray '\302' in program paritar.cpp:17:2: error: stray '\240' in program paritar.cpp:19:2: error: stray '\302' in program { ^ paritar.cpp:19:2: error: stray '\240' in program paritar.cpp:19:2: error: stray '\302' in program paritar.cpp:19:2: error: stray '\240' in program paritar.cpp:21:2: error: stray '\302' in program f >> num; ^ paritar.cpp:21:2: error: stray '\240' in program paritar.cpp:21:2: error: stray '\302' in program paritar.cpp:21:2: error: stray '\240' in program paritar.cpp:21:2: error: stray '\302' in program paritar.cpp:21:2: error: stray '\240' in program paritar.cpp:21:2: error: stray '\302' in program paritar.cpp:21:2: error: stray '\240' in program paritar.cpp:23:2: error: stray '\302' in program if (num%2) ^ paritar.cpp:23:2: error: stray '\240' in program paritar.cpp:23:2: error: stray '\302' in program paritar.cpp:23:2: error: stray '\240' in program paritar.cpp:23:2: error: stray '\302' in program paritar.cpp:23:2: error: stray '\240' in program paritar.cpp:23:2: error: stray '\302' in program paritar.cpp:23:2: error: stray '\240' in program paritar.cpp:25:2: error: stray '\302' in program { ^ paritar.cpp:25:2: error: stray '\240' in program paritar.cpp:25:2: error: stray '\302' in program paritar.cpp:25:2: error: stray '\240' in program paritar.cpp:25:2: error: stray '\302' in program paritar.cpp:25:2: error: stray '\240' in program paritar.cpp:25:2: error: stray '\302' in program paritar.cpp:25:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program if (i1==0) {maxi1=num; i1=1;} ^ paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:27:2: error: stray '\302' in program paritar.cpp:27:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program else if (num>maxi1) maxi1=num; ^ paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:29:2: error: stray '\302' in program paritar.cpp:29:2: error: stray '\240' in program paritar.cpp:31:2: error: stray '\302' in program } ^ paritar.cpp:31:2: error: stray '\240' in program paritar.cpp:31:2: error: stray '\302' in program paritar.cpp:31:2: error: stray '\240' in program paritar.cpp:31:2: error: stray '\302' in program paritar.cpp:31:2: error: stray '\240' in program paritar.cpp:31:2: error: stray '\302' in program paritar.cpp:31:2: error: stray '\240' in program paritar.cpp:33:2: error: stray '\302' in program else ^ paritar.cpp:33:2: error: stray '\240' in program paritar.cpp:33:2: error: stray '\302' in program paritar.cpp:33:2: error: stray '\240' in program paritar.cpp:33:2: error: stray '\302' in program paritar.cpp:33:2: error: stray '\240' in program paritar.cpp:33:2: error: stray '\302' in program paritar.cpp:33:2: error: stray '\240' in program paritar.cpp:35:2: error: stray '\302' in program { ^ paritar.cpp:35:2: error: stray '\240' in program paritar.cpp:35:2: error: stray '\302' in program paritar.cpp:35:2: error: stray '\240' in program paritar.cpp:35:2: error: stray '\302' in program paritar.cpp:35:2: error: stray '\240' in program paritar.cpp:35:2: error: stray '\302' in program paritar.cpp:35:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program if (p1==0) {maxp1=num; p1=1;} ^ paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:37:2: error: stray '\302' in program paritar.cpp:37:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program else if (num>maxp1) maxp1=num; ^ paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:39:2: error: stray '\302' in program paritar.cpp:39:2: error: stray '\240' in program paritar.cpp:41:2: error: stray '\302' in program } ^ paritar.cpp:41:2: error: stray '\240' in program paritar.cpp:41:2: error: stray '\302' in program paritar.cpp:41:2: error: stray '\240' in program paritar.cpp:41:2: error: stray '\302' in program paritar.cpp:41:2: error: stray '\240' in program paritar.cpp:41:2: error: stray '\302' in program paritar.cpp:41:2: error: stray '\240' in program paritar.cpp:43:2: error: stray '\302' in program } ^ paritar.cpp:43:2: error: stray '\240' in program paritar.cpp:43:2: error: stray '\302' in program paritar.cpp:43:2: error: stray '\240' in program paritar.cpp:45:2: error: stray '\302' in program for (i=n+1; i<=2*n; ++i) ^ paritar.cpp:45:2: error: stray '\240' in program paritar.cpp:45:2: error: stray '\302' in program paritar.cpp:45:2: error: stray '\240' in program paritar.cpp:47:2: error: stray '\302' in program { ^ paritar.cpp:47:2: error: stray '\240' in program paritar.cpp:47:2: error: stray '\302' in program paritar.cpp:47:2: error: stray '\240' in program paritar.cpp:49:2: error: stray '\302' in program f >> num; ^ paritar.cpp:49:2: error: stray '\240' in program paritar.cpp:49:2: error: stray '\302' in program paritar.cpp:49:2: error: stray '\240' in program paritar.cpp:49:2: error: stray '\302' in program paritar.cpp:49:2: error: stray '\240' in program paritar.cpp:49:2: error: stray '\302' in program paritar.cpp:49:2: error: stray '\240' in program paritar.cpp:51:2: error: stray '\302' in program if (num%2) ^ paritar.cpp:51:2: error: stray '\240' in program paritar.cpp:51:2: error: stray '\302' in program paritar.cpp:51:2: error: stray '\240' in program paritar.cpp:51:2: error: stray '\302' in program paritar.cpp:51:2: error: stray '\240' in program paritar.cpp:51:2: error: stray '\302' in program paritar.cpp:51:2: error: stray '\240' in program paritar.cpp:53:2: error: stray '\302' in program { ^ paritar.cpp:53:2: error: stray '\240' in program paritar.cpp:53:2: error: stray '\302' in program paritar.cpp:53:2: error: stray '\240' in program paritar.cpp:53:2: error: stray '\302' in program paritar.cpp:53:2: error: stray '\240' in program paritar.cpp:53:2: error: stray '\302' in program paritar.cpp:53:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program if (i2==0) {mini2=num; i2=1;} ^ paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:55:2: error: stray '\302' in program paritar.cpp:55:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program else if (num<mini2) mini2=num; ^ paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:57:2: error: stray '\302' in program paritar.cpp:57:2: error: stray '\240' in program paritar.cpp:59:2: error: stray '\302' in program } ^ paritar.cpp:59:2: error: stray '\240' in program paritar.cpp:59:2: error: stray '\302' in program paritar.cpp:59:2: error: stray '\240' in program paritar.cpp:59:2: error: stray '\302' in program paritar.cpp:59:2: error: stray '\240' in program paritar.cpp:59:2: error: stray '\302' in program paritar.cpp:59:2: error: stray '\240' in program paritar.cpp:61:2: error: stray '\302' in program else ^ paritar.cpp:61:2: error: stray '\240' in program paritar.cpp:61:2: error: stray '\302' in program paritar.cpp:61:2: error: stray '\240' in program paritar.cpp:61:2: error: stray '\302' in program paritar.cpp:61:2: error: stray '\240' in program paritar.cpp:61:2: error: stray '\302' in program paritar.cpp:61:2: error: stray '\240' in program paritar.cpp:63:2: error: stray '\302' in program { ^ paritar.cpp:63:2: error: stray '\240' in program paritar.cpp:63:2: error: stray '\302' in program paritar.cpp:63:2: error: stray '\240' in program paritar.cpp:63:2: error: stray '\302' in program paritar.cpp:63:2: error: stray '\240' in program paritar.cpp:63:2: error: stray '\302' in program paritar.cpp:63:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program if (p2==0) {minp2=num; p2=1;} ^ paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:65:2: error: stray '\302' in program paritar.cpp:65:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program else if (num<minp2) minp2=num; ^ paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:67:2: error: stray '\302' in program paritar.cpp:67:2: error: stray '\240' in program paritar.cpp:69:2: error: stray '\302' in program } ^ paritar.cpp:69:2: error: stray '\240' in program paritar.cpp:69:2: error: stray '\302' in program paritar.cpp:69:2: error: stray '\240' in program paritar.cpp:69:2: error: stray '\302' in program paritar.cpp:69:2: error: stray '\240' in program paritar.cpp:69:2: error: stray '\302' in program paritar.cpp:69:2: error: stray '\240' in program paritar.cpp:71:2: error: stray '\302' in program } ^ paritar.cpp:71:2: error: stray '\240' in program paritar.cpp:71:2: error: stray '\302' in program paritar.cpp:71:2: error: stray '\240' in program paritar.cpp:73:2: error: stray '\302' in program if (p1*i1) ^ paritar.cpp:73:2: error: stray '\240' in program paritar.cpp:73:2: error: stray '\302' in program paritar.cpp:73:2: error: stray '\240' in program paritar.cpp:75:2: error: stray '\302' in program { ^ paritar.cpp:75:2: error: stray '\240' in program paritar.cpp:75:2: error: stray '\302' in program paritar.cpp:75:2: error: stray '\240' in program paritar.cpp:77:2: error: stray '\302' in program if (p2*i2) paritar=1; ^ paritar.cpp:77:2: error: stray '\240' in program paritar.cpp:77:2: error: stray '\302' in program paritar.cpp:77:2: error: stray '\240' in program paritar.cpp:77:2: error: stray '\302' in program paritar.cpp:77:2: error: stray '\240' in program paritar.cpp:77:2: error: stray '\302' in program paritar.cpp:77:2: error: stray '\240' in program paritar.cpp:79:2: error: stray '\302' in program else ^ paritar.cpp:79:2: error: stray '\240' in program paritar.cpp:79:2: error: stray '\302' in program paritar.cpp:79:2: error: stray '\240' in program paritar.cpp:79:2: error: stray '\302' in program paritar.cpp:79:2: error: stray '\240' in program paritar.cpp:79:2: error: stray '\302' in program paritar.cpp:79:2: error: stray '\240' in program paritar.cpp:81:2: error: stray '\302' in program { ^ paritar.cpp:81:2: error: stray '\240' in program paritar.cpp:81:2: error: stray '\302' in program paritar.cpp:81:2: error: stray '\240' in program paritar.cpp:81:2: error: stray '\302' in program paritar.cpp:81:2: error: stray '\240' in program paritar.cpp:81:2: error: stray '\302' in program paritar.cpp:81:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program if (p2) ^ paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:83:2: error: stray '\302' in program paritar.cpp:83:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program { ^ paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:85:2: error: stray '\302' in program paritar.cpp:85:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program if (maxi1<minp2) paritar=1; ^ paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:87:2: error: stray '\302' in program paritar.cpp:87:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program } ^ paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:89:2: error: stray '\302' in program paritar.cpp:89:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program else ^ paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:91:2: error: stray '\302' in program paritar.cpp:91:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program { ^ paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:93:2: error: stray '\302' in program paritar.cpp:93:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program if (maxp1<mini2) paritar=1; ^ paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:95:2: error: stray '\302' in program paritar.cpp:95:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program } ^ paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:97:2: error: stray '\302' in program paritar.cpp:97:2: error: stray '\240' in program paritar.cpp:99:2: error: stray '\302' in program } ^ paritar.cpp:99:2: error: stray '\240' in program paritar.cpp:99:2: error: stray '\302' in program paritar.cpp:99:2: error: stray '\240' in program paritar.cpp:99:2: error: stray '\302' in program paritar.cpp:99:2: error: stray '\240' in program paritar.cpp:99:2: error: stray '\302' in program paritar.cpp:99:2: error: stray '\240' in program paritar.cpp:101:2: error: stray '\302' in program } ^ paritar.cpp:101:2: error: stray '\240' in program paritar.cpp:101:2: error: stray '\302' in program paritar.cpp:101:2: error: stray '\240' in program paritar.cpp:103:2: error: stray '\302' in program else ^ paritar.cpp:103:2: error: stray '\240' in program paritar.cpp:103:2: error: stray '\302' in program paritar.cpp:103:2: error: stray '\240' in program paritar.cpp:105:2: error: stray '\302' in program { ^ paritar.cpp:105:2: error: stray '\240' in program paritar.cpp:105:2: error: stray '\302' in program paritar.cpp:105:2: error: stray '\240' in program paritar.cpp:107:2: error: stray '\302' in program if (p1) ^ paritar.cpp:107:2: error: stray '\240' in program paritar.cpp:107:2: error: stray '\302' in program paritar.cpp:107:2: error: stray '\240' in program paritar.cpp:107:2: error: stray '\302' in program paritar.cpp:107:2: error: stray '\240' in program paritar.cpp:107:2: error: stray '\302' in program paritar.cpp:107:2: error: stray '\240' in program paritar.cpp:109:2: error: stray '\302' in program { ^ paritar.cpp:109:2: error: stray '\240' in program paritar.cpp:109:2: error: stray '\302' in program paritar.cpp:109:2: error: stray '\240' in program paritar.cpp:109:2: error: stray '\302' in program paritar.cpp:109:2: error: stray '\240' in program paritar.cpp:109:2: error: stray '\302' in program paritar.cpp:109:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program if (p2) paritar=1; ^ paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:111:2: error: stray '\302' in program paritar.cpp:111:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program else ^ paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:113:2: error: stray '\302' in program paritar.cpp:113:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program { ^ paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:115:2: error: stray '\302' in program paritar.cpp:115:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program if (maxp1<mini2) paritar=1; ^ paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:117:2: error: stray '\302' in program paritar.cpp:117:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program } ^ paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:119:2: error: stray '\302' in program paritar.cpp:119:2: error: stray '\240' in program paritar.cpp:121:2: error: stray '\302' in program } ^ paritar.cpp:121:2: error: stray '\240' in program paritar.cpp:121:2: error: stray '\302' in program paritar.cpp:121:2: error: stray '\240' in program paritar.cpp:121:2: error: stray '\302' in program paritar.cpp:121:2: error: stray '\240' in program paritar.cpp:121:2: error: stray '\302' in program paritar.cpp:121:2: error: stray '\240' in program paritar.cpp:123:2: error: stray '\302' in program else ^ paritar.cpp:123:2: error: stray '\240' in program paritar.cpp:123:2: error: stray '\302' in program paritar.cpp:123:2: error: stray '\240' in program paritar.cpp:123:2: error: stray '\302' in program paritar.cpp:123:2: error: stray '\240' in program paritar.cpp:123:2: error: stray '\302' in program paritar.cpp:123:2: error: stray '\240' in program paritar.cpp:125:2: error: stray '\302' in program { ^ paritar.cpp:125:2: error: stray '\240' in program paritar.cpp:125:2: error: stray '\302' in program paritar.cpp:125:2: error: stray '\240' in program paritar.cpp:125:2: error: stray '\302' in program paritar.cpp:125:2: error: stray '\240' in program paritar.cpp:125:2: error: stray '\302' in program paritar.cpp:125:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program if (i2) paritar=1; ^ paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:127:2: error: stray '\302' in program paritar.cpp:127:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program else ^ paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:129:2: error: stray '\302' in program paritar.cpp:129:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program { ^ paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:131:2: error: stray '\302' in program paritar.cpp:131:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program if (maxi1<minp2) paritar=1; ^ paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:133:2: error: stray '\302' in program paritar.cpp:133:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program } ^ paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:135:2: error: stray '\302' in program paritar.cpp:135:2: error: stray '\240' in program paritar.cpp:137:2: error: stray '\302' in program } ^ paritar.cpp:137:2: error: stray '\240' in program paritar.cpp:137:2: error: stray '\302' in program paritar.cpp:137:2: error: stray '\240' in program paritar.cpp:137:2: error: stray '\302' in program paritar.cpp:137:2: error: stray '\240' in program paritar.cpp:137:2: error: stray '\302' in program paritar.cpp:137:2: error: stray '\240' in program paritar.cpp:139:2: error: stray '\302' in program } ^ paritar.cpp:139:2: error: stray '\240' in program paritar.cpp:139:2: error: stray '\302' in program paritar.cpp:139:2: error: stray '\240' in program paritar.cpp:141:2: error: stray '\302' in program if (paritar) cout << "DA"; ^ paritar.cpp:141:2: error: stray '\240' in program paritar.cpp:141:2: error: stray '\302' in program paritar.cpp:141:2: error: stray '\240' in program paritar.cpp:143:2: error: stray '\302' in program else cout << "NU"; ^ paritar.cpp:143:2: error: stray '\240' in program paritar.cpp:143:2: error: stray '\302' in program paritar.cpp:143:2: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema paritar 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ă.