Detalii evaluare #21672759

Rezumat problemă

Se dau două numere naturale a b. Determinați câte numere naturale din intervalul [a,b] se divid cu toate cifrele lor nenule.

Detalii

Problema DivCif Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #21672759 Utilizator Vaduva Robert (RobertVaduva1)
Fișier divcif.cpp Dimensiune 611 B
Data încărcării 09 Martie 2020, 12:08 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

divcif.cpp:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <bits/stdc++.h>

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

 ^
divcif.cpp:2:1: error: stray '\240' in program
divcif.cpp:2:1: error: stray '\302' in program
divcif.cpp:2:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
 int ninv, i, a, b, nr, n, k, r;

 ^
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:3:1: error: stray '\302' in program
divcif.cpp:3:1: error: stray '\240' in program
divcif.cpp:4:1: error: stray '\302' in program
 int main()

 ^
divcif.cpp:4:1: error: stray '\240' in program
divcif.cpp:6:1: error: stray '\302' in program
     cin >> a >> b;

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

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

 ^
divcif.cpp:8:1: error: stray '\240' in program
divcif.cpp:8:1: error: stray '\302' in program
divcif.cpp:8:1: error: stray '\240' in program
divcif.cpp:8:1: error: stray '\302' in program
divcif.cpp:8:1: error: stray '\240' in program
divcif.cpp:8:1: error: stray '\302' in program
divcif.cpp:8:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
         n = i * i;

 ^
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:9:1: error: stray '\302' in program
divcif.cpp:9:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
         k = n;

 ^
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:10:1: error: stray '\302' in program
divcif.cpp:10:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
         ninv = 0;

 ^
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:11:1: error: stray '\302' in program
divcif.cpp:11:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
         while(n)

 ^
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:12:1: error: stray '\302' in program
divcif.cpp:12:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
         {

 ^
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:13:1: error: stray '\302' in program
divcif.cpp:13:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
             ninv = ninv * 10 + n % 10;

 ^
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:14:1: error: stray '\302' in program
divcif.cpp:14:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
             n = n / 10;

 ^
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:15:1: error: stray '\302' in program
divcif.cpp:15:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
         }

 ^
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:16:1: error: stray '\302' in program
divcif.cpp:16:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
         r = sqrt(ninv);

 ^
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:17:1: error: stray '\302' in program
divcif.cpp:17:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
         if(r * r == ninv && k >= a && k <= b) nr++;

 ^
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:18:1: error: stray '\302' in program
divcif.cpp:18:1: error: stray '\240' in program
divcif.cpp:19:1: error: stray '\302' in program
     }

 ^
divcif.cpp:19:1: error: stray '\240' in program
divcif.cpp:19:1: error: stray '\302' in program
divcif.cpp:19:1: error: stray '\240' in program
divcif.cpp:19:1: error: stray '\302' in program
divcif.cpp:19:1: error: stray '\240' in program
divcif.cpp:19:1: error: stray '\302' in program
divcif.cpp:19:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
     cout << nr;

 ^
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:20:1: error: stray '\302' in program
divcif.cpp:20:1: error: stray '\240' in program
divcif.cpp:21:1: error: stray '\302' in program
     return 0;

 ^
divcif.cpp:21:1: error: stray '\240' in program
divcif.cpp:21:1: error: stray '\302' in program
divcif.cpp:21:1: error: stray '\240' in program
divcif.cpp:21:1: error: stray '\302' in program
divcif.cpp:21:1: error: stray '\240' in program
divcif.cpp:21:1: error: stray '\302' in program
divcif.cpp:21:1: error: stray '\240' in program
divcif.cpp:21:1: error: stray '\302' in program
divcif.cpp:21:1: error: stray '\240' in program
divcif.cpp: In function 'int main()':
divcif.cpp:6:9: error: 'cin' was not declared in this scope
     cin >> a >> b;

         ^
divcif.cpp:17:32: error: 'sqrt' was not declared in this scope
         r = sqrt(ninv);

                                ^
divcif.cpp:20:9: error: 'cout' was not declared in this scope
     cout << nr;

         ^
divcif.cpp: At global scope:
divcif.cpp:23:1: error: expected unqualified-id before '=' token
 =
 ^

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