#3268
CMMDC_CMMMC
Se dau două numere naturale nenule. Determinați cel mai mare divizor comun și cel mai mic multiplu comun al lor.
Problema | CMMDC_CMMMC | Operații I/O | tastatură/ecran |
---|---|---|---|
Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
Id soluție | #50239178 | Utilizator | |
Fișier | cmmdc_cmmmc.cpp | Dimensiune | 297 B |
Data încărcării | 01 Aprilie 2024, 21:02 | Scor / rezultat | 0 puncte |
cmmdc_cmmmc.cpp: In function 'int main()': cmmdc_cmmmc.cpp:19:25: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=] scanf("%ld%ld",&a,&b); ^ cmmdc_cmmmc.cpp:19:25: warning: format '%ld' expects argument of type 'long int*', but argument 3 has type 'long long int*' [-Wformat=] cmmdc_cmmmc.cpp:21:34: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'int' [-Wformat=] printf("%ld %ld",cmmdc(a,b),m); ^ cmmdc_cmmmc.cpp:21:34: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'int' [-Wformat=] cmmdc_cmmmc.cpp:19:26: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%ld%ld",&a,&b); ^
Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
---|---|---|---|---|---|---|
1 | 0 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
2 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
3 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
4 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
5 | 0 secunde | Raspuns gresit. | 20 | 0 | ||
Punctaj total | 0 |
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CMMDC_CMMMC 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ă.