Detalii evaluare #21735065

Rezumat problemă

#2734 ElimRep

Se citește un șir cu n elemente, numere întregi. Să se șteargă elementele care se repetă, păstrându-se doar primul de la stânga la dreapta.

Detalii

Problema ElimRep Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #21735065 Utilizator Popa Irina (irinapopa6464)
Fișier elimrep.cpp Dimensiune 520 B
Data încărcării 11 Martie 2020, 18:23 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

elimrep.cpp:9:1: error: stray '\302' in program
    int v[1001],n;

 ^
elimrep.cpp:9:1: error: stray '\240' in program
elimrep.cpp:9:1: error: stray '\302' in program
elimrep.cpp:9:1: error: stray '\240' in program
elimrep.cpp:11:1: error: stray '\302' in program
    cin>>n;

 ^
elimrep.cpp:11:1: error: stray '\240' in program
elimrep.cpp:11:1: error: stray '\302' in program
elimrep.cpp:11:1: error: stray '\240' in program
elimrep.cpp:13:1: error: stray '\302' in program
    for(int i=1;i<=n;i++)

 ^
elimrep.cpp:13:1: error: stray '\240' in program
elimrep.cpp:13:1: error: stray '\302' in program
elimrep.cpp:13:1: error: stray '\240' in program
elimrep.cpp:15:1: error: stray '\302' in program
        cin>>v[i];

 ^
elimrep.cpp:15:1: error: stray '\240' in program
elimrep.cpp:15:1: error: stray '\302' in program
elimrep.cpp:15:1: error: stray '\240' in program
elimrep.cpp:15:1: error: stray '\302' in program
elimrep.cpp:15:1: error: stray '\240' in program
elimrep.cpp:15:1: error: stray '\302' in program
elimrep.cpp:15:1: error: stray '\240' in program
elimrep.cpp:17:1: error: stray '\302' in program
    for(int i=1;i<n;i++)

 ^
elimrep.cpp:17:1: error: stray '\240' in program
elimrep.cpp:17:1: error: stray '\302' in program
elimrep.cpp:17:1: error: stray '\240' in program
elimrep.cpp:19:1: error: stray '\302' in program
        for(int j=i+1;j<=n;j++)

 ^
elimrep.cpp:19:1: error: stray '\240' in program
elimrep.cpp:19:1: error: stray '\302' in program
elimrep.cpp:19:1: error: stray '\240' in program
elimrep.cpp:19:1: error: stray '\302' in program
elimrep.cpp:19:1: error: stray '\240' in program
elimrep.cpp:19:1: error: stray '\302' in program
elimrep.cpp:19:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
            if(v[i]==v[j])

 ^
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:21:1: error: stray '\302' in program
elimrep.cpp:21:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
            {

 ^
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:23:1: error: stray '\302' in program
elimrep.cpp:23:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
                for(int k=j+1;k<=n;k++)

 ^
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:25:1: error: stray '\302' in program
elimrep.cpp:25:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
                    v[k-1]=v[k];

 ^
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:27:1: error: stray '\302' in program
elimrep.cpp:27:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
                n--,j--;

 ^
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:29:1: error: stray '\302' in program
elimrep.cpp:29:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
            }

 ^
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:31:1: error: stray '\302' in program
elimrep.cpp:31:1: error: stray '\240' in program
elimrep.cpp:33:1: error: stray '\302' in program
    for(int i=1;i<=n;i++)

 ^
elimrep.cpp:33:1: error: stray '\240' in program
elimrep.cpp:33:1: error: stray '\302' in program
elimrep.cpp:33:1: error: stray '\240' in program
elimrep.cpp:35:1: error: stray '\302' in program
        cout<<v[i]<<" ";

 ^
elimrep.cpp:35:1: error: stray '\240' in program
elimrep.cpp:35:1: error: stray '\302' in program
elimrep.cpp:35:1: error: stray '\240' in program
elimrep.cpp:35:1: error: stray '\302' in program
elimrep.cpp:35:1: error: stray '\240' in program
elimrep.cpp:35:1: error: stray '\302' in program
elimrep.cpp:35:1: error: stray '\240' in program
elimrep.cpp:37:1: error: stray '\302' in program
    return 0;

 ^
elimrep.cpp:37:1: error: stray '\240' in program
elimrep.cpp:37:1: error: stray '\302' in program
elimrep.cpp:37: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 ElimRep 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ă.