#2280
Memory008
Se dau n
numere naturale. Doar unul are frecvență impară. Să se identifice acel număr.
Problema | Memory008 | Operații I/O |
memory008.in /memory008.out
|
---|---|---|---|
Limita timp | 0.22 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0.1 MB
|
Id soluție | #49847174 | Utilizator | |
Fișier | memory008.cpp | Dimensiune | 600 B |
Data încărcării | 17 Martie 2024, 15:05 | Scor / rezultat | Eroare de compilare |
memory008.cpp:5:14: warning: missing terminating " character [enabled by default] ifstream cin("memory008.in); ^ memory008.cpp:5:1: error: missing terminating " character ifstream cin("memory008.in); ^ memory008.cpp:7:14: error: expected ',' or '...' before '(' token ofstream cout("memory008.out"); ^ memory008.cpp:7:31: error: expected ')' before ';' token ofstream cout("memory008.out"); ^ memory008.cpp: In function 'int main()': memory008.cpp:17:12: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'int' to binary 'operator>>' cin >> size; ^ memory008.cpp:27:16: error: invalid operands of types 'std::ifstream(std::ofstream) {aka std::basic_ifstream<char>(std::basic_ofstream<char>)}' and 'long long int' to binary 'operator>>' cin >> numar; ^ memory008.cpp:32:5: error: 'cout' was not declared in this scope cout << rezultat; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory008 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ă.