Detalii evaluare #22128722

Rezumat problemă

Se dau doi vectori cu câte n elemente, numere naturale. Verificați dacă cei doi vectori conțin exact aceleași elemente.

Detalii

Problema Identice Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #22128722 Utilizator Vasile Paul (Paul_V)
Fișier identice.cpp Dimensiune 505 B
Data încărcării 26 Martie 2020, 14:13 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

identice.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>

         ^
identice.cpp:2:1: error: stray '\302' in program
 using namespace std;

 ^
identice.cpp:2:1: error: stray '\240' in program
identice.cpp:2:1: error: stray '\302' in program
identice.cpp:2:1: error: stray '\240' in program
identice.cpp:3:1: error: stray '\302' in program
 int main(){

 ^
identice.cpp:3:1: error: stray '\240' in program
identice.cpp:4:1: error: stray '\302' in program
   int n,i,j,k,b,c=0,ok=1;

 ^
identice.cpp:4:1: error: stray '\240' in program
identice.cpp:4:1: error: stray '\302' in program
identice.cpp:4:1: error: stray '\240' in program
identice.cpp:4:1: error: stray '\302' in program
identice.cpp:4:1: error: stray '\240' in program
identice.cpp:5:1: error: stray '\302' in program
   cin >> n;

 ^
identice.cpp:5:1: error: stray '\240' in program
identice.cpp:5:1: error: stray '\302' in program
identice.cpp:5:1: error: stray '\240' in program
identice.cpp:5:1: error: stray '\302' in program
identice.cpp:5:1: error: stray '\240' in program
identice.cpp:5:1: error: stray '\302' in program
identice.cpp:5:1: error: stray '\240' in program
identice.cpp:6:1: error: stray '\302' in program
   int v[n],a[n];

 ^
identice.cpp:6:1: error: stray '\240' in program
identice.cpp:6:1: error: stray '\302' in program
identice.cpp:6:1: error: stray '\240' in program
identice.cpp:6:1: error: stray '\302' in program
identice.cpp:6:1: error: stray '\240' in program
identice.cpp:7:1: error: stray '\302' in program
   for(i=1;i<=n;i++)

 ^
identice.cpp:7:1: error: stray '\240' in program
identice.cpp:7:1: error: stray '\302' in program
identice.cpp:7:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
     cin >> v[i];

 ^
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:8:1: error: stray '\302' in program
identice.cpp:8:1: error: stray '\240' in program
identice.cpp:9:1: error: stray '\302' in program
   for(i=1;i<=n;i++)

 ^
identice.cpp:9:1: error: stray '\240' in program
identice.cpp:9:1: error: stray '\302' in program
identice.cpp:9:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
     cin >> a[i];

 ^
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:10:1: error: stray '\302' in program
identice.cpp:10:1: error: stray '\240' in program
identice.cpp:11:1: error: stray '\302' in program
   for(i=1;i<=n;i++){

 ^
identice.cpp:11:1: error: stray '\240' in program
identice.cpp:11:1: error: stray '\302' in program
identice.cpp:11:1: error: stray '\240' in program
identice.cpp:12:1: error: stray '\302' in program
     b=v[i];

 ^
identice.cpp:12:1: error: stray '\240' in program
identice.cpp:12:1: error: stray '\302' in program
identice.cpp:12:1: error: stray '\240' in program
identice.cpp:12:1: error: stray '\302' in program
identice.cpp:12:1: error: stray '\240' in program
identice.cpp:12:1: error: stray '\302' in program
identice.cpp:12:1: error: stray '\240' in program
identice.cpp:13:1: error: stray '\302' in program
     k=0;

 ^
identice.cpp:13:1: error: stray '\240' in program
identice.cpp:13:1: error: stray '\302' in program
identice.cpp:13:1: error: stray '\240' in program
identice.cpp:13:1: error: stray '\302' in program
identice.cpp:13:1: error: stray '\240' in program
identice.cpp:13:1: error: stray '\302' in program
identice.cpp:13:1: error: stray '\240' in program
identice.cpp:14:1: error: stray '\302' in program
     c=0;

 ^
identice.cpp:14:1: error: stray '\240' in program
identice.cpp:14:1: error: stray '\302' in program
identice.cpp:14:1: error: stray '\240' in program
identice.cpp:14:1: error: stray '\302' in program
identice.cpp:14:1: error: stray '\240' in program
identice.cpp:14:1: error: stray '\302' in program
identice.cpp:14:1: error: stray '\240' in program
identice.cpp:15:1: error: stray '\302' in program
     for(j=1;j<=n;j++){

 ^
identice.cpp:15:1: error: stray '\240' in program
identice.cpp:15:1: error: stray '\302' in program
identice.cpp:15:1: error: stray '\240' in program
identice.cpp:15:1: error: stray '\302' in program
identice.cpp:15:1: error: stray '\240' in program
identice.cpp:15:1: error: stray '\302' in program
identice.cpp:15:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
       if(b==a[j]) k++;

 ^
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:16:1: error: stray '\302' in program
identice.cpp:16:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
       if(b==v[j]) c++;

 ^
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:17:1: error: stray '\302' in program
identice.cpp:17:1: error: stray '\240' in program
identice.cpp:18:1: error: stray '\302' in program
     }

 ^
identice.cpp:18:1: error: stray '\240' in program
identice.cpp:18:1: error: stray '\302' in program
identice.cpp:18:1: error: stray '\240' in program
identice.cpp:18:1: error: stray '\302' in program
identice.cpp:18:1: error: stray '\240' in program
identice.cpp:18:1: error: stray '\302' in program
identice.cpp:18:1: error: stray '\240' in program
identice.cpp:19:1: error: stray '\302' in program
     if(c!=k) ok=0;

 ^
identice.cpp:19:1: error: stray '\240' in program
identice.cpp:19:1: error: stray '\302' in program
identice.cpp:19:1: error: stray '\240' in program
identice.cpp:19:1: error: stray '\302' in program
identice.cpp:19:1: error: stray '\240' in program
identice.cpp:19:1: error: stray '\302' in program
identice.cpp:19:1: error: stray '\240' in program
identice.cpp:19:1: error: stray '\302' in program
identice.cpp:19:1: error: stray '\240' in program
identice.cpp:20:1: error: stray '\302' in program
   }

 ^
identice.cpp:20:1: error: stray '\240' in program
identice.cpp:20:1: error: stray '\302' in program
identice.cpp:20:1: error: stray '\240' in program
identice.cpp:21:1: error: stray '\302' in program
   if(ok)

 ^
identice.cpp:21:1: error: stray '\240' in program
identice.cpp:21:1: error: stray '\302' in program
identice.cpp:21:1: error: stray '\240' in program
identice.cpp:22:1: error: stray '\302' in program
     cout<<"DA";

 ^
identice.cpp:22:1: error: stray '\240' in program
identice.cpp:22:1: error: stray '\302' in program
identice.cpp:22:1: error: stray '\240' in program
identice.cpp:22:1: error: stray '\302' in program
identice.cpp:22:1: error: stray '\240' in program
identice.cpp:22:1: error: stray '\302' in program
identice.cpp:22:1: error: stray '\240' in program
identice.cpp:23:1: error: stray '\302' in program
   else

 ^
identice.cpp:23:1: error: stray '\240' in program
identice.cpp:23:1: error: stray '\302' in program
identice.cpp:23:1: error: stray '\240' in program
identice.cpp:24:1: error: stray '\302' in program
     cout<<"NU";

 ^
identice.cpp:24:1: error: stray '\240' in program
identice.cpp:24:1: error: stray '\302' in program
identice.cpp:24:1: error: stray '\240' in program
identice.cpp:24:1: error: stray '\302' in program
identice.cpp:24:1: error: stray '\240' in program
identice.cpp:24:1: error: stray '\302' in program
identice.cpp:24:1: error: stray '\240' in program
identice.cpp:25:1: error: stray '\302' in program
   return 0;

 ^
identice.cpp:25:1: error: stray '\240' in program
identice.cpp:25:1: error: stray '\302' in program
identice.cpp:25:1: error: stray '\240' in program
identice.cpp:25:1: error: stray '\302' in program
identice.cpp:25:1: error: stray '\240' in program
identice.cpp: In function 'int main()':
identice.cpp:5:5: error: 'cin' was not declared in this scope
   cin >> n;

     ^
identice.cpp:22:9: error: 'cout' was not declared in this scope
     cout<<"DA";

         ^
identice.cpp:24:9: error: 'cout' was not declared in this scope
     cout<<"NU";

         ^

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