#254
Puteri
Se dau n
perechi de numere naturale a
, b
. Să se determine pentru fiecare pereche, dacă există, cea mai mare putere a lui 2
din intervalul determinat de a
şi b
.
Variante Bacalaureat 2009
Problema | Puteri | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #11399477 | Utilizator | |
Fișier | puteri.cpp | Dimensiune | 694 B |
Data încărcării | 27 Octombrie 2018, 17:00 | Scor / rezultat | Eroare de compilare |
puteri.cpp:7:1: error: stray '\302' in program int n,v[10001],a,b,t = 0; ^ puteri.cpp:7:1: error: stray '\240' in program puteri.cpp:7:1: error: stray '\302' in program puteri.cpp:7:1: error: stray '\240' in program puteri.cpp:7:1: error: stray '\302' in program puteri.cpp:7:1: error: stray '\240' in program puteri.cpp:8:1: error: stray '\302' in program cin >> n; ^ puteri.cpp:8:1: error: stray '\240' in program puteri.cpp:8:1: error: stray '\302' in program puteri.cpp:8:1: error: stray '\240' in program puteri.cpp:8:1: error: stray '\302' in program puteri.cpp:8:1: error: stray '\240' in program puteri.cpp:9:1: error: stray '\302' in program for (int i = 0;i < n;++i) ^ puteri.cpp:9:1: error: stray '\240' in program puteri.cpp:9:1: error: stray '\302' in program puteri.cpp:9:1: error: stray '\240' in program puteri.cpp:9:1: error: stray '\302' in program puteri.cpp:9:1: error: stray '\240' in program puteri.cpp:10:1: error: stray '\302' in program { ^ puteri.cpp:10:1: error: stray '\240' in program puteri.cpp:10:1: error: stray '\302' in program puteri.cpp:10:1: error: stray '\240' in program puteri.cpp:10:1: error: stray '\302' in program puteri.cpp:10:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program cin >> a >> b; ^ puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:11:1: error: stray '\302' in program puteri.cpp:11:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program if ( a > b ) ^ puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:12:1: error: stray '\302' in program puteri.cpp:12:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program { ^ puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:13:1: error: stray '\302' in program puteri.cpp:13:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program a ^= b; ^ puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:14:1: error: stray '\302' in program puteri.cpp:14:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program b ^= a; ^ puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:15:1: error: stray '\302' in program puteri.cpp:15:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program a ^= b; ^ puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:16:1: error: stray '\302' in program puteri.cpp:16:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program } ^ puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:17:1: error: stray '\302' in program puteri.cpp:17:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program int P = 1, maxim = 0; ^ puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:18:1: error: stray '\302' in program puteri.cpp:18:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program while (P <= b) ^ puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:19:1: error: stray '\302' in program puteri.cpp:19:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program { ^ puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:20:1: error: stray '\302' in program puteri.cpp:20:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program if (P >= a) ^ puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:21:1: error: stray '\302' in program puteri.cpp:21:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program maxim = P; ^ puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:22:1: error: stray '\302' in program puteri.cpp:22:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program P *= 2; ^ puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:23:1: error: stray '\302' in program puteri.cpp:23:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program } ^ puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:24:1: error: stray '\302' in program puteri.cpp:24:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program v[++t] = maxim; ^ puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:25:1: error: stray '\302' in program puteri.cpp:25:1: error: stray '\240' in program puteri.cpp:26:1: error: stray '\302' in program } ^ puteri.cpp:26:1: error: stray '\240' in program puteri.cpp:26:1: error: stray '\302' in program puteri.cpp:26:1: error: stray '\240' in program puteri.cpp:26:1: error: stray '\302' in program puteri.cpp:26:1: error: stray '\240' in program puteri.cpp:27:1: error: stray '\302' in program for (int i = 1;i <= t;++i) ^ puteri.cpp:27:1: error: stray '\240' in program puteri.cpp:27:1: error: stray '\302' in program puteri.cpp:27:1: error: stray '\240' in program puteri.cpp:27:1: error: stray '\302' in program puteri.cpp:27:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program cout << v[i] << endl; ^ puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:28:1: error: stray '\302' in program puteri.cpp:28:1: error: stray '\240' in program puteri.cpp:29:1: error: stray '\302' in program return 0; ^ puteri.cpp:29:1: error: stray '\240' in program puteri.cpp:29:1: error: stray '\302' in program puteri.cpp:29:1: error: stray '\240' in program puteri.cpp:29:1: error: stray '\302' in program puteri.cpp:29:1: error: stray '\240' in program
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Puteri 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ă.