#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 | #64548477 | Utilizator | |
| Fișier | memory001.cpp | Dimensiune | 475 B |
| Data încărcării | 13 Mai 2026, 17:23 | Scor/rezultat | Eroare de compilare |
memory001.cpp: In function ‘int main()’: memory001.cpp:16:18: error: ‘x’ was not declared in this scope 16 | fin>>x; | ^ memory001.cpp:13:5: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation] 13 | for(i=1; i<=n; i++) | ^~~ memory001.cpp:19:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’ 19 | int mn=2e18; | ^~~ memory001.cpp:19:16: warning: overflow in conversion from ‘double’ to ‘int’ changes value from ‘2.0e+18’ to ‘2147483647’ [-Woverflow] 19 | int mn=2e18; | ^~~~ memory001.cpp:10:15: warning: unused variable ‘p’ [-Wunused-variable] 10 | int i, j, p=1,mx=-1; | ^ memory001.cpp:10:19: warning: unused variable ‘mx’ [-Wunused-variable] 10 | int i, j, p=1,mx=-1; | ^~ memory001.cpp:12:15: warning: unused variable ‘s’ [-Wunused-variable] 12 | long long s=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ă.