Detalii evaluare #56626855

Rezumat problemă

numereX

#3680

1. Se dă un număr natural N. Determinați cel mai mic număr din intervalul închis [1,N] care are
număr maxim de divizori proprii.
2. Se dau trei numere N, M și T. Determinați câte intervale de forma [a,b] au proprietatea că există exact M numere naturale care au T divizori proprii.

Detalii

Problema numereX Operații I/O numere.in/numere.out
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #56626855 Utilizator Panait Vladimir (vladimir2509)
Fișier numerex.cpp Dimensiune 1.19 KB
Data încărcării 27 Februarie 2025, 20:10 Scor / rezultat Eroare de compilare

Evaluare

Mesaj compilare

numerex.cpp:2:1: error: stray '\302' in program
  

 ^
numerex.cpp:2:1: error: stray '\240' in program
numerex.cpp:10:1: error: stray '\302' in program
     for(int i=2;i<=100000;i++){

 ^
numerex.cpp:10:1: error: stray '\240' in program
numerex.cpp:10:1: error: stray '\302' in program
numerex.cpp:10:1: error: stray '\240' in program
numerex.cpp:11:1: error: stray '\302' in program
         for(int j=2*i;j<=100000;j+=i){

 ^
numerex.cpp:11:1: error: stray '\240' in program
numerex.cpp:11:1: error: stray '\302' in program
numerex.cpp:11:1: error: stray '\240' in program
numerex.cpp:11:1: error: stray '\302' in program
numerex.cpp:11:1: error: stray '\240' in program
numerex.cpp:11:1: error: stray '\302' in program
numerex.cpp:11:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
             nrDiv[j]++;

 ^
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:12:1: error: stray '\302' in program
numerex.cpp:12:1: error: stray '\240' in program
numerex.cpp:13:1: error: stray '\302' in program
         }

 ^
numerex.cpp:13:1: error: stray '\240' in program
numerex.cpp:13:1: error: stray '\302' in program
numerex.cpp:13:1: error: stray '\240' in program
numerex.cpp:13:1: error: stray '\302' in program
numerex.cpp:13:1: error: stray '\240' in program
numerex.cpp:13:1: error: stray '\302' in program
numerex.cpp:13:1: error: stray '\240' in program
numerex.cpp:14:1: error: stray '\302' in program
     }

 ^
numerex.cpp:14:1: error: stray '\240' in program
numerex.cpp:14:1: error: stray '\302' in program
numerex.cpp:14:1: error: stray '\240' in program
numerex.cpp:17:1: error: stray '\302' in program
     precalcDiv();

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

 ^
numerex.cpp:18:1: error: stray '\240' in program
numerex.cpp:18:1: error: stray '\302' in program
numerex.cpp:18:1: error: stray '\240' in program
numerex.cpp:19:1: error: stray '\302' in program
     if(cerinta == 1){

 ^
numerex.cpp:19:1: error: stray '\240' in program
numerex.cpp:19:1: error: stray '\302' in program
numerex.cpp:19:1: error: stray '\240' in program
numerex.cpp:20:1: error: stray '\302' in program
         cin>>N;

 ^
numerex.cpp:20:1: error: stray '\240' in program
numerex.cpp:20:1: error: stray '\302' in program
numerex.cpp:20:1: error: stray '\240' in program
numerex.cpp:20:1: error: stray '\302' in program
numerex.cpp:20:1: error: stray '\240' in program
numerex.cpp:20:1: error: stray '\302' in program
numerex.cpp:20:1: error: stray '\240' in program
numerex.cpp:21:1: error: stray '\302' in program
         int mxdiv = -1,answer = -1;

 ^
numerex.cpp:21:1: error: stray '\240' in program
numerex.cpp:21:1: error: stray '\302' in program
numerex.cpp:21:1: error: stray '\240' in program
numerex.cpp:21:1: error: stray '\302' in program
numerex.cpp:21:1: error: stray '\240' in program
numerex.cpp:21:1: error: stray '\302' in program
numerex.cpp:21:1: error: stray '\240' in program
numerex.cpp:22:1: error: stray '\302' in program
         for(int i=1;i<=N;i++){

 ^
numerex.cpp:22:1: error: stray '\240' in program
numerex.cpp:22:1: error: stray '\302' in program
numerex.cpp:22:1: error: stray '\240' in program
numerex.cpp:22:1: error: stray '\302' in program
numerex.cpp:22:1: error: stray '\240' in program
numerex.cpp:22:1: error: stray '\302' in program
numerex.cpp:22:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
             if(nrDiv[i] > mxdiv){

 ^
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:23:1: error: stray '\302' in program
numerex.cpp:23:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
                 mxdiv = nrDiv[i];

 ^
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:24:1: error: stray '\302' in program
numerex.cpp:24:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
                 answer = i;

 ^
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:25:1: error: stray '\302' in program
numerex.cpp:25:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
             }

 ^
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:26:1: error: stray '\302' in program
numerex.cpp:26:1: error: stray '\240' in program
numerex.cpp:27:1: error: stray '\302' in program
         }

 ^
numerex.cpp:27:1: error: stray '\240' in program
numerex.cpp:27:1: error: stray '\302' in program
numerex.cpp:27:1: error: stray '\240' in program
numerex.cpp:27:1: error: stray '\302' in program
numerex.cpp:27:1: error: stray '\240' in program
numerex.cpp:27:1: error: stray '\302' in program
numerex.cpp:27:1: error: stray '\240' in program
numerex.cpp:28:1: error: stray '\302' in program
         cout<<answer<<'\n';

 ^
numerex.cpp:28:1: error: stray '\240' in program
numerex.cpp:28:1: error: stray '\302' in program
numerex.cpp:28:1: error: stray '\240' in program
numerex.cpp:28:1: error: stray '\302' in program
numerex.cpp:28:1: error: stray '\240' in program
numerex.cpp:28:1: error: stray '\302' in program
numerex.cpp:28:1: error: stray '\240' in program
numerex.cpp:29:1: error: stray '\302' in program
     }

 ^
numerex.cpp:29:1: error: stray '\240' in program
numerex.cpp:29:1: error: stray '\302' in program
numerex.cpp:29:1: error: stray '\240' in program
numerex.cpp:30:1: error: stray '\302' in program
     else{

 ^
numerex.cpp:30:1: error: stray '\240' in program
numerex.cpp:30:1: error: stray '\302' in program
numerex.cpp:30:1: error: stray '\240' in program
numerex.cpp:31:1: error: stray '\302' in program
         cin>>N>>M>>T;

 ^
numerex.cpp:31:1: error: stray '\240' in program
numerex.cpp:31:1: error: stray '\302' in program
numerex.cpp:31:1: error: stray '\240' in program
numerex.cpp:31:1: error: stray '\302' in program
numerex.cpp:31:1: error: stray '\240' in program
numerex.cpp:31:1: error: stray '\302' in program
numerex.cpp:31:1: error: stray '\240' in program
numerex.cpp:32:1: error: stray '\302' in program
         long long subsecvente = 0;

 ^
numerex.cpp:32:1: error: stray '\240' in program
numerex.cpp:32:1: error: stray '\302' in program
numerex.cpp:32:1: error: stray '\240' in program
numerex.cpp:32:1: error: stray '\302' in program
numerex.cpp:32:1: error: stray '\240' in program
numerex.cpp:32:1: error: stray '\302' in program
numerex.cpp:32:1: error: stray '\240' in program
numerex.cpp:33:1: error: stray '\302' in program
         for(int i=1;i<=N;i++){

 ^
numerex.cpp:33:1: error: stray '\240' in program
numerex.cpp:33:1: error: stray '\302' in program
numerex.cpp:33:1: error: stray '\240' in program
numerex.cpp:33:1: error: stray '\302' in program
numerex.cpp:33:1: error: stray '\240' in program
numerex.cpp:33:1: error: stray '\302' in program
numerex.cpp:33:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
             if(nrDiv[i] == T){

 ^
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:34:1: error: stray '\302' in program
numerex.cpp:34:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
                 ones[++cntones] = i;

 ^
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:35:1: error: stray '\302' in program
numerex.cpp:35:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
             }

 ^
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:36:1: error: stray '\302' in program
numerex.cpp:36:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
             if(cntones >= M){

 ^
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:37:1: error: stray '\302' in program
numerex.cpp:37:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
                 int p1 = ones[cntones - M];

 ^
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:38:1: error: stray '\302' in program
numerex.cpp:38:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
                 int p2 = ones[cntones - M + 1];

 ^
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:39:1: error: stray '\302' in program
numerex.cpp:39:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
                 subsecvente += p2 - p1;

 ^
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:40:1: error: stray '\302' in program
numerex.cpp:40:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
             }

 ^
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:41:1: error: stray '\302' in program
numerex.cpp:41:1: error: stray '\240' in program
numerex.cpp:42:1: error: stray '\302' in program
  

 ^
numerex.cpp:42:1: error: stray '\240' in program
numerex.cpp:43:1: error: stray '\302' in program
         }

 ^
numerex.cpp:43:1: error: stray '\240' in program
numerex.cpp:43:1: error: stray '\302' in program
numerex.cpp:43:1: error: stray '\240' in program
numerex.cpp:43:1: error: stray '\302' in program
numerex.cpp:43:1: error: stray '\240' in program
numerex.cpp:43:1: error: stray '\302' in program
numerex.cpp:43:1: error: stray '\240' in program
numerex.cpp:44:1: error: stray '\302' in program
         cout<<subsecvente<<'\n';

 ^
numerex.cpp:44:1: error: stray '\240' in program
numerex.cpp:44:1: error: stray '\302' in program
numerex.cpp:44:1: error: stray '\240' in program
numerex.cpp:44:1: error: stray '\302' in program
numerex.cpp:44:1: error: stray '\240' in program
numerex.cpp:44:1: error: stray '\302' in program
numerex.cpp:44:1: error: stray '\240' in program
numerex.cpp:45:1: error: stray '\302' in program
     }

 ^
numerex.cpp:45:1: error: stray '\240' in program
numerex.cpp:45:1: error: stray '\302' in program
numerex.cpp:45:1: error: stray '\240' in program
numerex.cpp:46:1: error: stray '\302' in program
  

 ^
numerex.cpp:46:1: error: stray '\240' in program
numerex.cpp:47:1: error: stray '\302' in program
  

 ^
numerex.cpp:47: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 numereX 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ă.

Du-te sus!