#2765
CheckColor
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
.
Best of CNCV /w 2018
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 | |
Fișier | checkcolor.cpp | Dimensiune | 1.83 KB |
Data încărcării | 04 Noiembrie 2024, 19:36 | Scor / rezultat | Eroare de 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
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CheckColor face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
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ă.