Detalii evaluare #16232411

Rezumat problemă

Greacă este patronul firmei Grexy300, care produce periferice și componente. Fiind Black Friday, acesta vine pe piața cu niște produse noi și extrem de avansate, dar încă nu a găsit denumirile potrivite. Din propria experiența, știe că numele de produse care sunt cuvinte palindromice, nu prea atrag clienții. Așa că se întreabă, câte cuvinte de lungime x, nu sunt palindromice. El are n lungimi de care este interesat. Tu fiind noul prieten și angajat al lui Greacă, trebuie să îi răspunzi la întrebări modulo 666013. Desigur că nu faci toate aceste eforturi degeaba, vei primi 100 de puncte și un salariu pe măsură.

Detalii

Problema Grexy300 Operații I/O grexy.in/grexy.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #16232411 Utilizator Berty Berty (Berticuy)
Fișier grexy300.cpp Dimensiune 1.53 KB
Data încărcării 21 Iunie 2019, 21:46 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

grexy300.cpp:9:2: error: stray '\302' in program
     char text[101], *p;  // textul citit si un pointer pentru strtok

  ^
grexy300.cpp:9:2: error: stray '\240' in program
grexy300.cpp:9:2: error: stray '\302' in program
grexy300.cpp:9:2: error: stray '\240' in program
grexy300.cpp:9:2: error: stray '\302' in program
grexy300.cpp:9:2: error: stray '\240' in program
grexy300.cpp:11:2: error: stray '\302' in program
     char cuvinte[100][100];  // vector de cuvinte in care pun cuvintele din text

  ^
grexy300.cpp:11:2: error: stray '\240' in program
grexy300.cpp:11:2: error: stray '\302' in program
grexy300.cpp:11:2: error: stray '\240' in program
grexy300.cpp:11:2: error: stray '\302' in program
grexy300.cpp:11:2: error: stray '\240' in program
grexy300.cpp:13:2: error: stray '\302' in program
     cin.get(text, 100);  // citesc sirul de la intrare

  ^
grexy300.cpp:13:2: error: stray '\240' in program
grexy300.cpp:13:2: error: stray '\302' in program
grexy300.cpp:13:2: error: stray '\240' in program
grexy300.cpp:13:2: error: stray '\302' in program
grexy300.cpp:13:2: error: stray '\240' in program
grexy300.cpp:15:2: error: stray '\302' in program
     int nr_cuvinte = 0;  //variabila cu care numar cuvintele

  ^
grexy300.cpp:15:2: error: stray '\240' in program
grexy300.cpp:15:2: error: stray '\302' in program
grexy300.cpp:15:2: error: stray '\240' in program
grexy300.cpp:15:2: error: stray '\302' in program
grexy300.cpp:15:2: error: stray '\240' in program
grexy300.cpp:17:2: error: stray '\302' in program
     p = strtok(text," ");

  ^
grexy300.cpp:17:2: error: stray '\240' in program
grexy300.cpp:17:2: error: stray '\302' in program
grexy300.cpp:17:2: error: stray '\240' in program
grexy300.cpp:19:2: error: stray '\302' in program
     int i;

  ^
grexy300.cpp:19:2: error: stray '\240' in program
grexy300.cpp:19:2: error: stray '\302' in program
grexy300.cpp:19:2: error: stray '\240' in program
grexy300.cpp:21:2: error: stray '\302' in program
     while (p) {  // separ in cuvinte

  ^
grexy300.cpp:21:2: error: stray '\240' in program
grexy300.cpp:21:2: error: stray '\302' in program
grexy300.cpp:21:2: error: stray '\240' in program
grexy300.cpp:21:2: error: stray '\302' in program
grexy300.cpp:21:2: error: stray '\240' in program
grexy300.cpp:23:2: error: stray '\302' in program
        strcpy(cuvinte[nr_cuvinte++], p);

  ^
grexy300.cpp:23:2: error: stray '\240' in program
grexy300.cpp:23:2: error: stray '\302' in program
grexy300.cpp:23:2: error: stray '\240' in program
grexy300.cpp:23:2: error: stray '\302' in program
grexy300.cpp:23:2: error: stray '\240' in program
grexy300.cpp:25:2: error: stray '\302' in program
        p = strtok(NULL, " ");

  ^
grexy300.cpp:25:2: error: stray '\240' in program
grexy300.cpp:25:2: error: stray '\302' in program
grexy300.cpp:25:2: error: stray '\240' in program
grexy300.cpp:25:2: error: stray '\302' in program
grexy300.cpp:25:2: error: stray '\240' in program
grexy300.cpp:27:2: error: stray '\302' in program
     }

  ^
grexy300.cpp:27:2: error: stray '\240' in program
grexy300.cpp:27:2: error: stray '\302' in program
grexy300.cpp:27:2: error: stray '\240' in program
grexy300.cpp:29:2: error: stray '\302' in program
     for (i = 0; i < nr_cuvinte; i++) {

  ^
grexy300.cpp:29:2: error: stray '\240' in program
grexy300.cpp:29:2: error: stray '\302' in program
grexy300.cpp:29:2: error: stray '\240' in program
grexy300.cpp:31:2: error: stray '\302' in program
         /** iau fiecare cuvant si daca e impar il

  ^
grexy300.cpp:31:2: error: stray '\240' in program
grexy300.cpp:31:2: error: stray '\302' in program
grexy300.cpp:31:2: error: stray '\240' in program
grexy300.cpp:31:2: error: stray '\302' in program
grexy300.cpp:31:2: error: stray '\240' in program
grexy300.cpp:31:2: error: stray '\302' in program
grexy300.cpp:31:2: error: stray '\240' in program
grexy300.cpp:41:2: error: stray '\302' in program
         p = cuvinte[i];

  ^
grexy300.cpp:41:2: error: stray '\240' in program
grexy300.cpp:41:2: error: stray '\302' in program
grexy300.cpp:41:2: error: stray '\240' in program
grexy300.cpp:41:2: error: stray '\302' in program
grexy300.cpp:41:2: error: stray '\240' in program
grexy300.cpp:41:2: error: stray '\302' in program
grexy300.cpp:41:2: error: stray '\240' in program
grexy300.cpp:43:2: error: stray '\302' in program
         if (strlen(p) % 2 == 1) {

  ^
grexy300.cpp:43:2: error: stray '\240' in program
grexy300.cpp:43:2: error: stray '\302' in program
grexy300.cpp:43:2: error: stray '\240' in program
grexy300.cpp:43:2: error: stray '\302' in program
grexy300.cpp:43:2: error: stray '\240' in program
grexy300.cpp:43:2: error: stray '\302' in program
grexy300.cpp:43:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
             char temp[100];

  ^
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:45:2: error: stray '\302' in program
grexy300.cpp:45:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
             strcpy(temp, p);

  ^
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:47:2: error: stray '\302' in program
grexy300.cpp:47:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
             temp[strlen(p) / 2 + 1] = temp[strlen(p) / 2];

  ^
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:49:2: error: stray '\302' in program
grexy300.cpp:49:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
             strcpy(temp + strlen(p) / 2 + 2, p + strlen(p) / 2 + 1);

  ^
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:51:2: error: stray '\302' in program
grexy300.cpp:51:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
             p = temp;

  ^
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:53:2: error: stray '\302' in program
grexy300.cpp:53:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
             int j;

  ^
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:55:2: error: stray '\302' in program
grexy300.cpp:55:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
             for (j = 0; j < nr_cuvinte; j++) {

  ^
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:57:2: error: stray '\302' in program
grexy300.cpp:57:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
                 if (strcmp(cuvinte[j],p) == 0) {

  ^
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:59:2: error: stray '\302' in program
grexy300.cpp:59:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
                     cout << "DA";  // daca mai apare afisez DA si ies din program

  ^
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:61:2: error: stray '\302' in program
grexy300.cpp:61:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
                     return 0;

  ^
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:63:2: error: stray '\302' in program
grexy300.cpp:63:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
                 }

  ^
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:65:2: error: stray '\302' in program
grexy300.cpp:65:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
             }

  ^
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:67:2: error: stray '\302' in program
grexy300.cpp:67:2: error: stray '\240' in program
grexy300.cpp:69:2: error: stray '\302' in program
         }

  ^
grexy300.cpp:69:2: error: stray '\240' in program
grexy300.cpp:69:2: error: stray '\302' in program
grexy300.cpp:69:2: error: stray '\240' in program
grexy300.cpp:69:2: error: stray '\302' in program
grexy300.cpp:69:2: error: stray '\240' in program
grexy300.cpp:69:2: error: stray '\302' in program
grexy300.cpp:69:2: error: stray '\240' in program
grexy300.cpp:71:2: error: stray '\302' in program
     }

  ^
grexy300.cpp:71:2: error: stray '\240' in program
grexy300.cpp:71:2: error: stray '\302' in program
grexy300.cpp:71:2: error: stray '\240' in program
grexy300.cpp:73:2: error: stray '\302' in program
     cout << "NU";

  ^
grexy300.cpp:73:2: error: stray '\240' in program
grexy300.cpp:73:2: error: stray '\302' in program
grexy300.cpp:73:2: error: stray '\240' in program
grexy300.cpp:75:2: error: stray '\302' in program
     return 0;

  ^
grexy300.cpp:75:2: error: stray '\240' in program
grexy300.cpp:75:2: error: stray '\302' in program
grexy300.cpp:75:2: error: stray '\240' in program

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