#1444
Să se afle indicele coloanei dintr-o matrice pentru care suma elementelor este minimă.
folclor
| Problema | Memory001 | Operații I/O |
memory001.in/memory001.out
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 0.1 MB
/
Stivă 0 MB
|
| Id soluție | #64793423 | Utilizator | |
| Fișier | memory001.cpp | Dimensiune | 539 B |
| Data încărcării | 01 Iunie 2026, 17:41 | Scor/rezultat | 0 puncte |
memory001.cpp: In function ‘int main()’: memory001.cpp:13:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for(j=1; j<=m; j++) | ^~~ memory001.cpp:15:13: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 15 | f[j]+=x; | ^ memory001.cpp:10:37: warning: unused variable ‘s’ [-Wunused-variable] 10 | int x, f[1002]={0}, n, m, i, j, s, smin=INT_MAX, jmin=INT_MAX; | ^ memory001.cpp:15:17: warning: ‘j’ may be used uninitialized [-Wmaybe-uninitialized] 15 | f[j]+=x; | ~~~~^~~ memory001.cpp:10:34: note: ‘j’ was declared here 10 | int x, f[1002]={0}, n, m, i, j, s, smin=INT_MAX, jmin=INT_MAX; | ^
| 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.011 secunde | Raspuns gresit. | 20 | 0 | ||
| 4 | 0.093 secunde | Raspuns gresit. | 20 | 0 | ||
| 5 | 0.097 secunde | Raspuns gresit. | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Memory001 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ă.