#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 | #51522781 | Utilizator | |
Fișier | memory008.cpp | Dimensiune | 423 B |
Data încărcării | 04 Iulie 2024, 10:40 | Scor / rezultat | Eroare de compilare |
memory008.cpp:2:23: warning: integer constant is so large that it is unsigned [enabled by default] unsigned long long fr[10000000000000000002]; ^ memory008.cpp:2:43: error: size of array 'fr' is too large unsigned long long fr[10000000000000000002]; ^ memory008.cpp: In function 'int main()': memory008.cpp:13:9: error: 'fr' was not declared in this scope fr[x]++; ^ memory008.cpp:9:22: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%d",&n); ^ memory008.cpp:12:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f,"%llu",&x); ^
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ă.