#3053
EvenOddXXL
Se dă un număr natural n
. Să se determine paritatea lui. Dacă numărul este par se afișează Par
, altfel se afișează Impar
.
Problema | EvenOddXXL | Operații I/O |
evenoddxxl.in /evenoddxxl.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #55009707 | Utilizator | |
Fișier | evenoddxxl.cpp | Dimensiune | 236 B |
Data încărcării | 16 Decembrie 2024, 13:14 | Scor / rezultat | Eroare de compilare |
evenoddxxl.cpp:5:5: error: stray '\342' in program ifstream fin(“evenoddxx1.in”); ^ evenoddxxl.cpp:5:5: error: stray '\200' in program evenoddxxl.cpp:5:5: error: stray '\234' in program evenoddxxl.cpp:5:5: error: stray '\342' in program evenoddxxl.cpp:5:5: error: stray '\200' in program evenoddxxl.cpp:5:5: error: stray '\235' in program evenoddxxl.cpp:6:5: error: stray '\342' in program ofstream fout(“evenoddxx1.out”); ^ evenoddxxl.cpp:6:5: error: stray '\200' in program evenoddxxl.cpp:6:5: error: stray '\234' in program evenoddxxl.cpp:6:5: error: stray '\342' in program evenoddxxl.cpp:6:5: error: stray '\200' in program evenoddxxl.cpp:6:5: error: stray '\235' in program evenoddxxl.cpp:9:5: error: stray '\342' in program fout << (n % 2 == 0 ? “Par” : “Impar”); ^ evenoddxxl.cpp:9:5: error: stray '\200' in program evenoddxxl.cpp:9:5: error: stray '\234' in program evenoddxxl.cpp:9:5: error: stray '\342' in program evenoddxxl.cpp:9:5: error: stray '\200' in program evenoddxxl.cpp:9:5: error: stray '\235' in program evenoddxxl.cpp:9:5: error: stray '\342' in program evenoddxxl.cpp:9:5: error: stray '\200' in program evenoddxxl.cpp:9:5: error: stray '\234' in program evenoddxxl.cpp:9:5: error: stray '\342' in program evenoddxxl.cpp:9:5: error: stray '\200' in program evenoddxxl.cpp:9:5: error: stray '\235' in program evenoddxxl.cpp: In function 'int main()': evenoddxxl.cpp:5:21: error: 'evenoddxx1' was not declared in this scope ifstream fin(“evenoddxx1.in”); ^ evenoddxxl.cpp:9:30: error: 'Par' was not declared in this scope fout << (n % 2 == 0 ? “Par” : “Impar”); ^ evenoddxxl.cpp:9:42: error: 'Impar' was not declared in this scope fout << (n % 2 == 0 ? “Par” : “Impar”); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema EvenOddXXL 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ă.