#1310
Se citesc două numere naturale n m cu exact trei cifre fiecare. Să se afle câte cifre din n divid pe m.
| Problema | CifDiv | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64836292 | Utilizator | |
| Fișier | cifdiv.cpp | Dimensiune | 313 B |
| Data încărcării | 04 Iunie 2026, 20:18 | Scor/rezultat | 0 puncte |
cifdiv.cpp: In function ‘int main()’: cifdiv.cpp:10:8: warning: array subscript 3 is above array bounds of ‘int [3]’ [-Warray-bounds=] 10 | v[3]=0; //acesta este contorul nostru | ~~~^ cifdiv.cpp:5:13: note: while referencing ‘v’ 5 | int m,n,v[3]; | ^ cifdiv.cpp:16:16: warning: array subscript 3 is above array bounds of ‘int [3]’ [-Warray-bounds=] 16 | cout << v[3]; | ^ cifdiv.cpp:5:13: note: while referencing ‘v’ 5 | int m,n,v[3]; | ^ cifdiv.cpp:13:16: warning: array subscript 3 is above array bounds of ‘int [3]’ [-Warray-bounds=] 13 | v[3]++; | ~~~^ cifdiv.cpp:5:13: note: while referencing ‘v’ 5 | int m,n,v[3]; | ^ cifdiv.cpp:13:16: warning: array subscript 3 is above array bounds of ‘int [3]’ [-Warray-bounds=] 13 | v[3]++; | ~~~^ cifdiv.cpp:5:13: note: while referencing ‘v’ 5 | int m,n,v[3]; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.003 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.002 secunde | Caught fatal signal 8 | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema CifDiv 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ă.