#529
Cifre4
Se dau n
numere naturale. Afișați cifrele care apar în scrierea zecimală a acestor numere, în ordinea crescătoare a numărului de apariții. Dacă două cifre au același număr de apariții, se va afișa mai întâi cifra mai mică,
Problema | Cifre4 | Operații I/O |
![]() |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #58316297 | Utilizator | |
Fișier | cifre4.cpp | Dimensiune | 925 B |
Data încărcării | 26 Mai 2025, 21:34 | Scor / rezultat | Eroare de compilare |
cifre4.cpp: In function 'int main()': cifre4.cpp:7:17: error: expected unqualified-id before '=' token int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:21: error: expected primary-expression before ',' token int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:23: error: 'i' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:26: error: 'x' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:29: error: 'szamjegy' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:39: error: 'szamjegyek' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:55: error: 'db' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:63: error: 'darab' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:70: error: 'j' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:73: error: 't' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:7:76: error: 'k' was not declared in this scope int n, v[10],={0}, i, x, szamjegy, szamjegyek[10], db[10], darab, j, t, k; ^ cifre4.cpp:15:8: error: expected ';' before '}' token } ^ cifre4.cpp:32:4: error: expected ';' before '}' token } ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Cifre4 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ă.