Detalii evaluare #11399475

Rezumat problemă

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.

Detalii

Problema Puteri Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #11399475 Utilizator Paul Andrei (Paul_Andrei)
Fișier puteri.cpp Dimensiune 773 B
Data încărcării 27 Octombrie 2018, 17:00 Scor / rezultat Eroare de compilare

Evaluare


Mesaj 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
puteri.cpp:32:1: error: stray '\310' in program
 Citește mai multe pe Brainly.ro - https://brainly.ro/tema/5193612#readmore
 ^
puteri.cpp:32:1: error: stray '\231' in program
puteri.cpp:32:1: error: 'Cite' does not name a type

Cum funcționează evaluarea?

www.pbinfo.ro permite evaluarea a două tipuri de probleme:

  • probleme la care rezolvarea presupune scrierea unui program complet
  • probleme la care rezolvarea presupune scrierea unei secvențe de program - câteva instrucțiuni, o listă de declarații, una sau mai multe funcții, etc.

Problema Puteri face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:

  • Programul sursă este compilat folosind compilatorul corespunzător. Dacă în urma compilării se obțin erori sau avertismente, acestea sunt afișate în această pagină.
  • Dacă programul a fost compilat, executabilul obținut va fi rulat, furnizându-i-se unul sau mai multe seturi de date de intrare, în concordanță cu restricțiile specifice problemei. Pentru fiecare set de date se obține un anumit punctaj, în raport cu corectitudinea soluției tale.

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ă.