Detalii evaluare #53545223

Rezumat problemă

Dându-se trei numere, R, G și B, verificați dacă acestea pot reprezenta o culoare sau o nuanță de gri. O culoare se consideră nuanță de gri dacă și numai dacă diferența dintre oricare două coduri ce reprezintă culorile primare nu depășește 10.

Detalii

Problema CheckColor Operații I/O tastatură/ecran
Limita timp 0.1 secunde Limita memorie Total: 8 MB / Stivă 8 MB
Id soluție #53545223 Utilizator Teodorescu Ioana (teodorescuioana)
Fișier checkcolor.cpp Dimensiune 1.83 KB
Data încărcării 04 Noiembrie 2024, 19:36 Scor / rezultat Eroare de compilare

Evaluare


Mesaj compilare

checkcolor.cpp:2767:1: error: stray '\304' in program
checkcolor.cpp:2767:1: error: stray '\203' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\233' in program
checkcolor.cpp:2767:1: error: stray '\304' in program
checkcolor.cpp:2767:1: error: stray '\203' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\233' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\231' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\231' in program
checkcolor.cpp:2767:1: error: stray '\304' in program
checkcolor.cpp:2767:1: error: stray '\203' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\231' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\233' in program
checkcolor.cpp:2767:1: error: stray '\303' in program
checkcolor.cpp:2767:1: error: stray '\242' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\233' in program
checkcolor.cpp:2767:1: error: stray '\304' in program
checkcolor.cpp:2767:1: error: stray '\203' in program
checkcolor.cpp:2767:1: error: stray '\310' in program
checkcolor.cpp:2767:1: error: stray '\233' in program
checkcolor.cpp:2769:1: error: stray '\310' in program
checkcolor.cpp:2769:1: error: stray '\233' in program
checkcolor.cpp:2770:1: error: stray '\303' in program
checkcolor.cpp:2770:1: error: stray '\242' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\231' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\233' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\233' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\233' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\231' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\233' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\304' in program
checkcolor.cpp:2770:1: error: stray '\203' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\231' in program
checkcolor.cpp:2770:1: error: stray '\310' in program
checkcolor.cpp:2770:1: error: stray '\231' in program
checkcolor.cpp:2773:1: error: stray '\310' in program
checkcolor.cpp:2773:1: error: stray '\231' in program
checkcolor.cpp:2773:1: error: stray '\304' in program
checkcolor.cpp:2773:1: error: stray '\203' in program
checkcolor.cpp:2773:1: error: stray '\303' in program
checkcolor.cpp:2773:1: error: stray '\256' in program
checkcolor.cpp:2773:1: error: stray '\310' in program
checkcolor.cpp:2773:1: error: stray '\231' in program
checkcolor.cpp:2775:1: error: stray '\310' in program
checkcolor.cpp:2775:1: error: stray '\231' in program
checkcolor.cpp:2776:1: error: stray '\310' in program
checkcolor.cpp:2776:1: error: stray '\231' in program
checkcolor.cpp:2778:1: error: stray '\304' in program
checkcolor.cpp:2778:1: error: stray '\203' in program
checkcolor.cpp:2778:1: error: stray '\310' in program
checkcolor.cpp:2778:1: error: stray '\231' in program
checkcolor.cpp:2779:1: error: stray '\304' in program
checkcolor.cpp:2779:1: error: stray '\203' in program
checkcolor.cpp:2779:1: error: stray '\310' in program
checkcolor.cpp:2779:1: error: stray '\231' in program
checkcolor.cpp:2779:1: error: stray '\310' in program
checkcolor.cpp:2779:1: error: stray '\233' in program
checkcolor.cpp:2779:1: error: stray '\304' in program
checkcolor.cpp:2779:1: error: stray '\203' in program
checkcolor.cpp:2780:1: error: stray '\304' in program
checkcolor.cpp:2780:1: error: stray '\203' in program
checkcolor.cpp:2780:1: error: stray '\310' in program
checkcolor.cpp:2780:1: error: stray '\231' in program
checkcolor.cpp:2780:1: error: stray '\310' in program
checkcolor.cpp:2780:1: error: stray '\233' in program
checkcolor.cpp:2780:1: error: stray '\304' in program
checkcolor.cpp:2780:1: error: stray '\203' in program
checkcolor.cpp:2781:1: error: stray '\310' in program
checkcolor.cpp:2781:1: error: stray '\233' in program
checkcolor.cpp:2781:1: error: stray '\310' in program
checkcolor.cpp:2781:1: error: stray '\231' in program
checkcolor.cpp:2781:1: error: stray '\304' in program
checkcolor.cpp:2781:1: error: stray '\203' in program
checkcolor.cpp:2782:1: error: stray '\342' in program
checkcolor.cpp:2782:1: error: stray '\211' in program
checkcolor.cpp:2782:1: error: stray '\244' in program
checkcolor.cpp:2782:1: error: stray '\342' in program
checkcolor.cpp:2782:1: error: stray '\211' in program
checkcolor.cpp:2782:1: error: stray '\244' in program
checkcolor.cpp:2783:1: error: stray '\342' in program
checkcolor.cpp:2783:1: error: stray '\211' in program
checkcolor.cpp:2783:1: error: stray '\244' in program
checkcolor.cpp:2783:1: error: stray '\342' in program
checkcolor.cpp:2783:1: error: stray '\211' in program
checkcolor.cpp:2783:1: error: stray '\244' in program
checkcolor.cpp:2783:1: error: stray '\342' in program
checkcolor.cpp:2783:1: error: stray '\200' in program
checkcolor.cpp:2783:1: error: stray '\223' in program
checkcolor.cpp:2783:1: error: stray '\303' in program
checkcolor.cpp:2783:1: error: stray '\256' in program
checkcolor.cpp:2783:1: error: stray '\304' in program
checkcolor.cpp:2783:1: error: stray '\203' in program
checkcolor.cpp:2789:1: error: stray '\310' in program
checkcolor.cpp:2789:1: error: stray '\231' in program
checkcolor.cpp:2796:1: error: stray '\310' in program
checkcolor.cpp:2796:1: error: stray '\231' in program
checkcolor.cpp:2803:1: error: stray '\310' in program
checkcolor.cpp:2803:1: error: stray '\231' in program
checkcolor.cpp:2811:1: error: stray '\304' in program
checkcolor.cpp:2811:1: error: stray '\203' in program
checkcolor.cpp:2765:1: error: 'CheckColor' does not name a type
checkcolor.cpp:2779:1: error: 'CULOARE' does not name a type
checkcolor.cpp:2780:1: error: 'GRI' does not name a type
checkcolor.cpp:2781:1: error: 'Restric' does not name a type
checkcolor.cpp:2783:1: error: expected unqualified-id before numeric constant

cc1plus: out of memory allocating 1677721600 bytes after a total of 671744 bytes

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