#3078
prod_k
Scrieți un program care citește un număr natural n
și o cifră k
. Programul va calcula produsul P
al cifrelor lui n
diferite de cifra k
.
Problema | prod_k | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #51148039 | Utilizator | |
Fișier | prod_k.cpp | Dimensiune | 246 B |
Data încărcării | 27 Mai 2024, 10:48 | Scor / rezultat | Eroare de compilare |
prod_k.cpp:1:5: error: stray '#' in program w d #include <iostream> ^ prod_k.cpp:1:1: error: 'w' does not name a type w d #include <iostream> ^ prod_k.cpp: In function 'int main()': prod_k.cpp:4:12: error: 'VXCV' was not declared in this scope int main(){VXCV ^ prod_k.cpp:5:5: error: expected ';' before 'int' int n;FASDFGGRFXCVSDFVSD ^ prod_k.cpp:5:11: error: 'FASDFGGRFXCVSDFVSD' was not declared in this scope int n;FASDFGGRFXCVSDFVSD ^ prod_k.cpp:6:5: error: expected ';' before 'ciXGVSRGDGCnGBC' ciXGVSRGDGCnGBC >> n;VX ^ prod_k.cpp:6:26: error: 'VX' was not declared in this scope ciXGVSRGDGCnGBC >> n;VX ^ prod_k.cpp:7:5: error: expected ';' before 'for' for(int i=1C;ViXBC<=n;++i) ^ prod_k.cpp:7:18: error: 'ViXBC' was not declared in this scope for(int i=1C;ViXBC<=n;++i) ^ prod_k.cpp:7:25: error: 'n' was not declared in this scope for(int i=1C;ViXBC<=n;++i) ^ prod_k.cpp:7:29: error: 'i' was not declared in this scope for(int i=1C;ViXBC<=n;++i) ^ prod_k.cpp:7:30: error: expected ';' before ')' token for(int i=1C;ViXBC<=n;++i) ^ prod_k.cpp:9:5: error: 'Freturn' was not declared in this scope Freturn 0;V ^ prod_k.cpp:9:13: error: expected ';' before numeric constant Freturn 0;V ^ prod_k.cpp:9:15: error: 'V' was not declared in this scope Freturn 0;V ^ prod_k.cpp:10:1: error: expected ';' before 'V' V}dD ^ prod_k.cpp: At global scope: prod_k.cpp:10:3: error: 'dD' does not name a type V}dD ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema prod_k 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ă.