Detalii evaluare #11786382

Rezumat problemă

#2669 Count5

Se dă un vector cu n numere naturale. Să se determine câte dintre perechile de elemente din vector sunt formate din valori cu aceeași sumă a cifrelor.

Detalii

Problema Count5 Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #11786382 Utilizator Stirban George Florin (Florin122001)
Fișier count5.cpp Dimensiune 499 B
Data încărcării 09 Noiembrie 2018, 17:48 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

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

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

 ^
count5.cpp:2:1: error: stray '\240' in program
count5.cpp:2:1: error: stray '\302' in program
count5.cpp:2:1: error: stray '\240' in program
count5.cpp:4:1: error: stray '\302' in program
 int sumcif(int x)

 ^
count5.cpp:4:1: error: stray '\240' in program
count5.cpp:4:1: error: stray '\302' in program
count5.cpp:4:1: error: stray '\240' in program
count5.cpp:6:1: error: stray '\302' in program
     int s=0;

 ^
count5.cpp:6:1: error: stray '\240' in program
count5.cpp:6:1: error: stray '\302' in program
count5.cpp:6:1: error: stray '\240' in program
count5.cpp:6:1: error: stray '\302' in program
count5.cpp:6:1: error: stray '\240' in program
count5.cpp:6:1: error: stray '\302' in program
count5.cpp:6:1: error: stray '\240' in program
count5.cpp:6:1: error: stray '\302' in program
count5.cpp:6:1: error: stray '\240' in program
count5.cpp:7:1: error: stray '\302' in program
     while(x)

 ^
count5.cpp:7:1: error: stray '\240' in program
count5.cpp:7:1: error: stray '\302' in program
count5.cpp:7:1: error: stray '\240' in program
count5.cpp:7:1: error: stray '\302' in program
count5.cpp:7:1: error: stray '\240' in program
count5.cpp:7:1: error: stray '\302' in program
count5.cpp:7:1: error: stray '\240' in program
count5.cpp:8:1: error: stray '\302' in program
     {

 ^
count5.cpp:8:1: error: stray '\240' in program
count5.cpp:8:1: error: stray '\302' in program
count5.cpp:8:1: error: stray '\240' in program
count5.cpp:8:1: error: stray '\302' in program
count5.cpp:8:1: error: stray '\240' in program
count5.cpp:8:1: error: stray '\302' in program
count5.cpp:8:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
         s+=x%10;

 ^
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:9:1: error: stray '\302' in program
count5.cpp:9:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
         x/=10;

 ^
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:10:1: error: stray '\302' in program
count5.cpp:10:1: error: stray '\240' in program
count5.cpp:11:1: error: stray '\302' in program
     }

 ^
count5.cpp:11:1: error: stray '\240' in program
count5.cpp:11:1: error: stray '\302' in program
count5.cpp:11:1: error: stray '\240' in program
count5.cpp:11:1: error: stray '\302' in program
count5.cpp:11:1: error: stray '\240' in program
count5.cpp:11:1: error: stray '\302' in program
count5.cpp:11:1: error: stray '\240' in program
count5.cpp:12:1: error: stray '\302' in program
     return s;

 ^
count5.cpp:12:1: error: stray '\240' in program
count5.cpp:12:1: error: stray '\302' in program
count5.cpp:12:1: error: stray '\240' in program
count5.cpp:12:1: error: stray '\302' in program
count5.cpp:12:1: error: stray '\240' in program
count5.cpp:12:1: error: stray '\302' in program
count5.cpp:12:1: error: stray '\240' in program
count5.cpp:12:1: error: stray '\302' in program
count5.cpp:12:1: error: stray '\240' in program
count5.cpp:15:1: error: stray '\302' in program
 int main()

 ^
count5.cpp:15:1: error: stray '\240' in program
count5.cpp:17:1: error: stray '\302' in program
     int n,i,j,C=0;

 ^
count5.cpp:17:1: error: stray '\240' in program
count5.cpp:17:1: error: stray '\302' in program
count5.cpp:17:1: error: stray '\240' in program
count5.cpp:17:1: error: stray '\302' in program
count5.cpp:17:1: error: stray '\240' in program
count5.cpp:17:1: error: stray '\302' in program
count5.cpp:17:1: error: stray '\240' in program
count5.cpp:17:1: error: stray '\302' in program
count5.cpp:17:1: error: stray '\240' in program
count5.cpp:18:1: error: stray '\302' in program
     cin>>n;

 ^
count5.cpp:18:1: error: stray '\240' in program
count5.cpp:18:1: error: stray '\302' in program
count5.cpp:18:1: error: stray '\240' in program
count5.cpp:18:1: error: stray '\302' in program
count5.cpp:18:1: error: stray '\240' in program
count5.cpp:18:1: error: stray '\302' in program
count5.cpp:18:1: error: stray '\240' in program
count5.cpp:19:1: error: stray '\302' in program
     int v[n];

 ^
count5.cpp:19:1: error: stray '\240' in program
count5.cpp:19:1: error: stray '\302' in program
count5.cpp:19:1: error: stray '\240' in program
count5.cpp:19:1: error: stray '\302' in program
count5.cpp:19:1: error: stray '\240' in program
count5.cpp:19:1: error: stray '\302' in program
count5.cpp:19:1: error: stray '\240' in program
count5.cpp:19:1: error: stray '\302' in program
count5.cpp:19:1: error: stray '\240' in program
count5.cpp:20:1: error: stray '\302' in program
     for(i=0;i<n;i++)

 ^
count5.cpp:20:1: error: stray '\240' in program
count5.cpp:20:1: error: stray '\302' in program
count5.cpp:20:1: error: stray '\240' in program
count5.cpp:20:1: error: stray '\302' in program
count5.cpp:20:1: error: stray '\240' in program
count5.cpp:20:1: error: stray '\302' in program
count5.cpp:20:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
         cin>>v[i];

 ^
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:21:1: error: stray '\302' in program
count5.cpp:21:1: error: stray '\240' in program
count5.cpp:22:1: error: stray '\302' in program
     for(i=0;i<n;i++)

 ^
count5.cpp:22:1: error: stray '\240' in program
count5.cpp:22:1: error: stray '\302' in program
count5.cpp:22:1: error: stray '\240' in program
count5.cpp:22:1: error: stray '\302' in program
count5.cpp:22:1: error: stray '\240' in program
count5.cpp:22:1: error: stray '\302' in program
count5.cpp:22:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
        for(j=i+1;j<n;j++)

 ^
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:23:1: error: stray '\302' in program
count5.cpp:23:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
          if(sumcif(v[i])==sumcif(v[j]))

 ^
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:24:1: error: stray '\302' in program
count5.cpp:24:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
             C++;

 ^
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:25:1: error: stray '\302' in program
count5.cpp:25:1: error: stray '\240' in program
count5.cpp:26:1: error: stray '\302' in program
    cout<<C;

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

         ^
count5.cpp:26:7: error: 'cout' was not declared in this scope
    cout<<C;

       ^

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