#826
CifMinParRec
C++
Să se scrie o funcție C++ recursivă care să returneze cea mai mică cifră pară a unui număr natural transmis ca parametru.
Problema | CifMinParRec | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #20693797 | Utilizator | |
Fișier | cifminparrec.cpp | Dimensiune | 366 B |
Data încărcării | 07 Februarie 2020, 11:43 | Scor / rezultat | Eroare de compilare |
cifminparrec.cpp:4:1: error: stray '\302' in program Int cifminpar(int n) ^ cifminparrec.cpp:4:1: error: stray '\240' in program cifminparrec.cpp:4:1: error: stray '\302' in program cifminparrec.cpp:4:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program if(n < 10) if(n % 2 == 0) return n; ^ cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:6:1: error: stray '\302' in program cifminparrec.cpp:6:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program else return -1; ^ cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:7:1: error: stray '\302' in program cifminparrec.cpp:7:1: error: stray '\240' in program cifminparrec.cpp:8:1: error: stray '\302' in program else ^ cifminparrec.cpp:8:1: error: stray '\240' in program cifminparrec.cpp:8:1: error: stray '\302' in program cifminparrec.cpp:8:1: error: stray '\240' in program cifminparrec.cpp:8:1: error: stray '\302' in program cifminparrec.cpp:8:1: error: stray '\240' in program cifminparrec.cpp:8:1: error: stray '\302' in program cifminparrec.cpp:8:1: error: stray '\240' in program cifminparrec.cpp:9:1: error: stray '\302' in program { ^ cifminparrec.cpp:9:1: error: stray '\240' in program cifminparrec.cpp:9:1: error: stray '\302' in program cifminparrec.cpp:9:1: error: stray '\240' in program cifminparrec.cpp:9:1: error: stray '\302' in program cifminparrec.cpp:9:1: error: stray '\240' in program cifminparrec.cpp:9:1: error: stray '\302' in program cifminparrec.cpp:9:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program int x = cifminpar(n / 10); ^ cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:10:1: error: stray '\302' in program cifminparrec.cpp:10:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program if(n % 2 == 1) return x; ^ cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:11:1: error: stray '\302' in program cifminparrec.cpp:11:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program else if(x < n % 10 && x != -1) return x; ^ cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:12:1: error: stray '\302' in program cifminparrec.cpp:12:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program else return n % 10; ^ cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:13:1: error: stray '\302' in program cifminparrec.cpp:13:1: error: stray '\240' in program cifminparrec.cpp:14:1: error: stray '\302' in program } ^ cifminparrec.cpp:14:1: error: stray '\240' in program cifminparrec.cpp:14:1: error: stray '\302' in program cifminparrec.cpp:14:1: error: stray '\240' in program cifminparrec.cpp:14:1: error: stray '\302' in program cifminparrec.cpp:14:1: error: stray '\240' in program cifminparrec.cpp:14:1: error: stray '\302' in program cifminparrec.cpp:14:1: error: stray '\240' in program cifminparrec.cpp:4:1: error: 'Int' does not name a type Int cifminpar(int n) ^ cifminparrec.cpp: In function 'int main()': cifminparrec.cpp:22:25: error: 'cifminpar' was not declared in this scope int y = cifminpar(x); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifMinParRec face parte din a doua categorie. Pentru aceste probleme se folosește un program suport, furnizat de propunătorul problemei. 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ă.