#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 | #64889908 | Utilizator | |
| Fișier | memory001.cpp | Dimensiune | 548 B |
| Data încărcării | 09 Iunie 2026, 20:21 | Scor/rezultat | 0 puncte |
memory001.cpp: In function ‘int main()’: memory001.cpp:7:36: warning: unused variable ‘ok’ [-Wunused-variable] 7 | long long n,m, a[202][202],i,j,ok,s,minn=INT_MAX,jmin; | ^~ memory001.cpp:14:14: warning: ‘s’ may be used uninitialized [-Wmaybe-uninitialized] 14 | s=s+a[i][j]; | ~^~~~~~~~~~ memory001.cpp:7:39: note: ‘s’ was declared here 7 | long long n,m, a[202][202],i,j,ok,s,minn=INT_MAX,jmin; | ^ In file included from /usr/include/c++/13/istream:41, from /usr/include/c++/13/sstream:40, from /usr/include/c++/13/complex:45, from /usr/include/c++/13/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:127, from memory001.cpp:1: In member function ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(long long int) [with _CharT = char; _Traits = std::char_traits<char>]’, inlined from ‘int main()’ at memory001.cpp:26:11: /usr/include/c++/13/ostream:204:25: warning: ‘jmin’ may be used uninitialized [-Wmaybe-uninitialized] 204 | { return _M_insert(__n); } | ~~~~~~~~~^~~~~ memory001.cpp: In function ‘int main()’: memory001.cpp:7:54: note: ‘jmin’ was declared here 7 | long long n,m, a[202][202],i,j,ok,s,minn=INT_MAX,jmin; | ^~~~
| 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.002 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 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ă.