#2407
odaoni
Aflaţi câţi divizori ai lui n
au mulţimea cifrelor din scrierea lor inclusă în mulţimea cifrelor din scrierea lui n
.
Problema | odaoni | Operații I/O |
odaoni.in /odaoni.out
|
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #53923501 | Utilizator | |
Fișier | odaoni.cpp | Dimensiune | 750 B |
Data încărcării | 14 Noiembrie 2024, 20:20 | Scor / rezultat | Eroare de compilare |
odaoni.cpp: In function 'int main()': odaoni.cpp:8:9: error: 'n' was not declared in this scope fin >> n; ^ odaoni.cpp:9:5: error: 'cn' was not declared in this scope cn = n; ^ odaoni.cpp:12:23: error: 'maxn' was not declared in this scope if (cn % 10 > maxn) ^ odaoni.cpp:14:23: error: 'minn' was not declared in this scope if (cn % 10 < minn) ^ odaoni.cpp:18:10: error: 'd' was not declared in this scope for (d = 2; d * d <= n; d ++) ^ odaoni.cpp:24:30: error: 'maxd' was not declared in this scope if (d % 10 > maxd) ^ odaoni.cpp:26:21: error: 's' was not declared in this scope if (s % 10 < mind) ^ odaoni.cpp:26:30: error: 'mind' was not declared in this scope if (s % 10 < mind) ^ odaoni.cpp:29:13: error: expected ';' before '}' token }while(d); ^ odaoni.cpp:30:17: error: 'maxn' was not declared in this scope if (maxn >= maxd && minn <= mind) ^ odaoni.cpp:30:25: error: 'maxd' was not declared in this scope if (maxn >= maxd && minn <= mind) ^ odaoni.cpp:30:33: error: 'minn' was not declared in this scope if (maxn >= maxd && minn <= mind) ^ odaoni.cpp:30:41: error: 'mind' was not declared in this scope if (maxn >= maxd && minn <= mind) ^ odaoni.cpp:31:17: error: 'nr' was not declared in this scope nr ++; ^ odaoni.cpp:34:13: error: 'nr' was not declared in this scope cout << nr; ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema odaoni 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ă.