Detalii evaluare #23290791

Rezumat problemă

Se dă un șir cu n elemente numere naturale. Să se se afișeze elementele din șir care au proprietatea că primele două cifre din scrierea zecimală formează un pătrat perfect.

Detalii

Problema ElemPP Operații I/O elempp.in/elempp.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #23290791 Utilizator Almiquedan Almasar (Warlock)
Fișier elempp.cpp Dimensiune 590 B
Data încărcării 10 Iunie 2020, 18:49 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

elempp.cpp:15:1: error: stray '\302' in program
    while (a>=100)

 ^
elempp.cpp:15:1: error: stray '\240' in program
elempp.cpp:15:1: error: stray '\302' in program
elempp.cpp:15:1: error: stray '\240' in program
elempp.cpp:17:1: error: stray '\302' in program
    {

 ^
elempp.cpp:17:1: error: stray '\240' in program
elempp.cpp:17:1: error: stray '\302' in program
elempp.cpp:17:1: error: stray '\240' in program
elempp.cpp:19:1: error: stray '\302' in program
        a/=10;

 ^
elempp.cpp:19:1: error: stray '\240' in program
elempp.cpp:19:1: error: stray '\302' in program
elempp.cpp:19:1: error: stray '\240' in program
elempp.cpp:19:1: error: stray '\302' in program
elempp.cpp:19:1: error: stray '\240' in program
elempp.cpp:19:1: error: stray '\302' in program
elempp.cpp:19:1: error: stray '\240' in program
elempp.cpp:21:1: error: stray '\302' in program
    }

 ^
elempp.cpp:21:1: error: stray '\240' in program
elempp.cpp:21:1: error: stray '\302' in program
elempp.cpp:21:1: error: stray '\240' in program
elempp.cpp:23:1: error: stray '\302' in program
    return a;

 ^
elempp.cpp:23:1: error: stray '\240' in program
elempp.cpp:23:1: error: stray '\302' in program
elempp.cpp:23:1: error: stray '\240' in program
elempp.cpp:31:1: error: stray '\302' in program
    ifstream f("elempp.in");

 ^
elempp.cpp:31:1: error: stray '\240' in program
elempp.cpp:31:1: error: stray '\302' in program
elempp.cpp:31:1: error: stray '\240' in program
elempp.cpp:33:1: error: stray '\302' in program
    ofstream g("elempp.out");

 ^
elempp.cpp:33:1: error: stray '\240' in program
elempp.cpp:33:1: error: stray '\302' in program
elempp.cpp:33:1: error: stray '\240' in program
elempp.cpp:35:1: error: stray '\302' in program
    int n, b, i, num, k=0;

 ^
elempp.cpp:35:1: error: stray '\240' in program
elempp.cpp:35:1: error: stray '\302' in program
elempp.cpp:35:1: error: stray '\240' in program
elempp.cpp:37:1: error: stray '\302' in program
    f >> n;

 ^
elempp.cpp:37:1: error: stray '\240' in program
elempp.cpp:37:1: error: stray '\302' in program
elempp.cpp:37:1: error: stray '\240' in program
elempp.cpp:39:1: error: stray '\302' in program
    for (i=1; i<=n; ++i)

 ^
elempp.cpp:39:1: error: stray '\240' in program
elempp.cpp:39:1: error: stray '\302' in program
elempp.cpp:39:1: error: stray '\240' in program
elempp.cpp:41:1: error: stray '\302' in program
    {

 ^
elempp.cpp:41:1: error: stray '\240' in program
elempp.cpp:41:1: error: stray '\302' in program
elempp.cpp:41:1: error: stray '\240' in program
elempp.cpp:43:1: error: stray '\302' in program
        f >> num;

 ^
elempp.cpp:43:1: error: stray '\240' in program
elempp.cpp:43:1: error: stray '\302' in program
elempp.cpp:43:1: error: stray '\240' in program
elempp.cpp:43:1: error: stray '\302' in program
elempp.cpp:43:1: error: stray '\240' in program
elempp.cpp:43:1: error: stray '\302' in program
elempp.cpp:43:1: error: stray '\240' in program
elempp.cpp:45:1: error: stray '\302' in program
        b=pdcpp(num);

 ^
elempp.cpp:45:1: error: stray '\240' in program
elempp.cpp:45:1: error: stray '\302' in program
elempp.cpp:45:1: error: stray '\240' in program
elempp.cpp:45:1: error: stray '\302' in program
elempp.cpp:45:1: error: stray '\240' in program
elempp.cpp:45:1: error: stray '\302' in program
elempp.cpp:45:1: error: stray '\240' in program
elempp.cpp:47:1: error: stray '\302' in program
        if (sqrt(b)==int(sqrt(b))) { ++k; c[k]=num; }

 ^
elempp.cpp:47:1: error: stray '\240' in program
elempp.cpp:47:1: error: stray '\302' in program
elempp.cpp:47:1: error: stray '\240' in program
elempp.cpp:47:1: error: stray '\302' in program
elempp.cpp:47:1: error: stray '\240' in program
elempp.cpp:47:1: error: stray '\302' in program
elempp.cpp:47:1: error: stray '\240' in program
elempp.cpp:49:1: error: stray '\302' in program
    }

 ^
elempp.cpp:49:1: error: stray '\240' in program
elempp.cpp:49:1: error: stray '\302' in program
elempp.cpp:49:1: error: stray '\240' in program
elempp.cpp:51:1: error: stray '\302' in program
    for (i=1; i<=k; ++i)

 ^
elempp.cpp:51:1: error: stray '\240' in program
elempp.cpp:51:1: error: stray '\302' in program
elempp.cpp:51:1: error: stray '\240' in program
elempp.cpp:53:1: error: stray '\302' in program
        g << c[i] << " ";

 ^
elempp.cpp:53:1: error: stray '\240' in program
elempp.cpp:53:1: error: stray '\302' in program
elempp.cpp:53:1: error: stray '\240' in program
elempp.cpp:53:1: error: stray '\302' in program
elempp.cpp:53:1: error: stray '\240' in program
elempp.cpp:53:1: error: stray '\302' in program
elempp.cpp:53:1: error: stray '\240' in program
elempp.cpp:55:1: error: stray '\302' in program
    return 0;

 ^
elempp.cpp:55:1: error: stray '\240' in program
elempp.cpp:55:1: error: stray '\302' in program
elempp.cpp:55:1: 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 ElemPP 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ă.