Detalii evaluare #17690197

Rezumat problemă

#944 rest

Un număr natural se împarte la toate numerele obținute din el prin eliminarea unei cifre. Care este restul maxim care se poate obține?

Detalii

Problema rest Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 64 MB / Stivă 8 MB
Id soluție #17690197 Utilizator Patrînjel Robert (PatrinjelRobert2003)
Fișier rest.cpp Dimensiune 511 B
Data încărcării 17 Octombrie 2019, 15:10 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

rest.cpp:13:1: error: stray '\302' in program
    cin >> n;

 ^
rest.cpp:13:1: error: stray '\240' in program
rest.cpp:13:1: error: stray '\302' in program
rest.cpp:13:1: error: stray '\240' in program
rest.cpp:15:1: error: stray '\302' in program
    r = n;

 ^
rest.cpp:15:1: error: stray '\240' in program
rest.cpp:15:1: error: stray '\302' in program
rest.cpp:15:1: error: stray '\240' in program
rest.cpp:17:1: error: stray '\302' in program
    p = 1;

 ^
rest.cpp:17:1: error: stray '\240' in program
rest.cpp:17:1: error: stray '\302' in program
rest.cpp:17:1: error: stray '\240' in program
rest.cpp:19:1: error: stray '\302' in program
    maxim =- 1;

 ^
rest.cpp:19:1: error: stray '\240' in program
rest.cpp:19:1: error: stray '\302' in program
rest.cpp:19:1: error: stray '\240' in program
rest.cpp:21:1: error: stray '\302' in program
    do

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

 ^
rest.cpp:23:1: error: stray '\240' in program
rest.cpp:23:1: error: stray '\302' in program
rest.cpp:23:1: error: stray '\240' in program
rest.cpp:25:1: error: stray '\302' in program
        m = (n / (10 * p)) * p + n % p;

 ^
rest.cpp:25:1: error: stray '\240' in program
rest.cpp:25:1: error: stray '\302' in program
rest.cpp:25:1: error: stray '\240' in program
rest.cpp:25:1: error: stray '\302' in program
rest.cpp:25:1: error: stray '\240' in program
rest.cpp:25:1: error: stray '\302' in program
rest.cpp:25:1: error: stray '\240' in program
rest.cpp:27:1: error: stray '\302' in program
        if(m != 0)

 ^
rest.cpp:27:1: error: stray '\240' in program
rest.cpp:27:1: error: stray '\302' in program
rest.cpp:27:1: error: stray '\240' in program
rest.cpp:27:1: error: stray '\302' in program
rest.cpp:27:1: error: stray '\240' in program
rest.cpp:27:1: error: stray '\302' in program
rest.cpp:27:1: error: stray '\240' in program
rest.cpp:29:1: error: stray '\302' in program
        {

 ^
rest.cpp:29:1: error: stray '\240' in program
rest.cpp:29:1: error: stray '\302' in program
rest.cpp:29:1: error: stray '\240' in program
rest.cpp:29:1: error: stray '\302' in program
rest.cpp:29:1: error: stray '\240' in program
rest.cpp:29:1: error: stray '\302' in program
rest.cpp:29:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
             if(n % m > maxim)

 ^
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:31:1: error: stray '\302' in program
rest.cpp:31:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
                maxim = n % m;

 ^
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:33:1: error: stray '\302' in program
rest.cpp:33:1: error: stray '\240' in program
rest.cpp:35:1: error: stray '\302' in program
        }

 ^
rest.cpp:35:1: error: stray '\240' in program
rest.cpp:35:1: error: stray '\302' in program
rest.cpp:35:1: error: stray '\240' in program
rest.cpp:35:1: error: stray '\302' in program
rest.cpp:35:1: error: stray '\240' in program
rest.cpp:35:1: error: stray '\302' in program
rest.cpp:35:1: error: stray '\240' in program
rest.cpp:37:1: error: stray '\302' in program
        r = n / (10 * p);

 ^
rest.cpp:37:1: error: stray '\240' in program
rest.cpp:37:1: error: stray '\302' in program
rest.cpp:37:1: error: stray '\240' in program
rest.cpp:37:1: error: stray '\302' in program
rest.cpp:37:1: error: stray '\240' in program
rest.cpp:37:1: error: stray '\302' in program
rest.cpp:37:1: error: stray '\240' in program
rest.cpp:39:1: error: stray '\302' in program
        p = p * 10;

 ^
rest.cpp:39:1: error: stray '\240' in program
rest.cpp:39:1: error: stray '\302' in program
rest.cpp:39:1: error: stray '\240' in program
rest.cpp:39:1: error: stray '\302' in program
rest.cpp:39:1: error: stray '\240' in program
rest.cpp:39:1: error: stray '\302' in program
rest.cpp:39:1: error: stray '\240' in program
rest.cpp:41:1: error: stray '\302' in program
    }

 ^
rest.cpp:41:1: error: stray '\240' in program
rest.cpp:41:1: error: stray '\302' in program
rest.cpp:41:1: error: stray '\240' in program
rest.cpp:43:1: error: stray '\302' in program
    while(r != 0);

 ^
rest.cpp:43:1: error: stray '\240' in program
rest.cpp:43:1: error: stray '\302' in program
rest.cpp:43:1: error: stray '\240' in program
rest.cpp:45:1: error: stray '\302' in program
    cout << maxim;

 ^
rest.cpp:45:1: error: stray '\240' in program
rest.cpp:45:1: error: stray '\302' in program
rest.cpp:45:1: error: stray '\240' in program
rest.cpp:47:1: error: stray '\302' in program
    return 0;

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