#1450
Să se afle câte coloane ale unei matrice au produsul elementelor divizibil cu un număr dat p.
| Problema | Memory003 | Operații I/O |
memory003.in/memory003.out
|
|---|---|---|---|
| Limita timp | 0.2 secunde | Limita memorie |
Total: 0.3 MB
/
Stivă 0 MB
|
| Id soluție | #64276172 | Utilizator | |
| Fișier | memory003.cpp | Dimensiune | 828 B |
| Data încărcării | 27 Aprilie 2026, 16:29 | Scor/rezultat | 0 puncte |
memory003.cpp: In function ‘int main()’: memory003.cpp:34:19: warning: statement has no effect [-Wunused-value] 34 | a[d]/l; | ~~~~^~ memory003.cpp:41:4: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation] 41 | if(ok==1) | ^~ memory003.cpp:43:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’ 43 | for(k=0;k<=100;k++) | ^~~ memory003.cpp:37:16: warning: array subscript 101 is above array bounds of ‘int [101]’ [-Warray-bounds=] 37 | if(fv[d]>b[d]) | ~~~~^ memory003.cpp:4:13: note: while referencing ‘fv’ 4 | int n,m,i,j,fv[101]={},a[101]={},p,x,d,ok=0,nr=0,k,b[101]={},l; | ^~ memory003.cpp:37:21: warning: array subscript 101 is above array bounds of ‘int [101]’ [-Warray-bounds=] 37 | if(fv[d]>b[d]) | ~~~^ memory003.cpp:4:52: note: while referencing ‘b’ 4 | int n,m,i,j,fv[101]={},a[101]={},p,x,d,ok=0,nr=0,k,b[101]={},l; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.001 secunde | Raspuns gresit. | 20 | 0 | Exemplu | |
| 2 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 3 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.001 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory003 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ă.