#3786
De n numere sunt date,
Şi cifra nouă e-n toate,
Află ce număr devine
Maxim făr’de nouă-n sine?
| Problema | toate | Operații I/O |
toate.in/toate.out
|
|---|---|---|---|
| Limita timp | 0.1 secunde | Limita memorie |
Total: 64 MB
/
Stivă 8 MB
|
| Id soluție | #64074076 | Utilizator | |
| Fișier | toate.cpp | Dimensiune | 1.58 KB |
| Data încărcării | 15 Aprilie 2026, 17:33 | Scor/rezultat | 0 puncte |
toate.cpp: In function ‘int main()’: toate.cpp:19:22: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 19 | if (st.find('+') != -1) { | ~~~~~~~~~~~~~^~~~~ toate.cpp:32:27: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 32 | else if (st.find('-') != -1) { | ~~~~~~~~~~~~~^~~~~ toate.cpp:45:27: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 45 | else if (st.find('*') != -1) { | ~~~~~~~~~~~~~^~~~~ toate.cpp:58:27: warning: comparison of integer expressions of different signedness: ‘std::__cxx11::basic_string<char>::size_type’ {aka ‘long unsigned int’} and ‘int’ [-Wsign-compare] 58 | else if (st.find(':') != -1) { | ~~~~~~~~~~~~~^~~~~ toate.cpp:72:20: warning: ‘tip’ may be used uninitialized [-Wmaybe-uninitialized] 72 | fout << tip << '\n' << x; | ^~~~ toate.cpp:17:9: note: ‘tip’ was declared here 17 | int tip, x; | ^~~ toate.cpp:72:28: warning: ‘x’ may be used uninitialized [-Wmaybe-uninitialized] 72 | fout << tip << '\n' << x; | ^ toate.cpp:17:14: note: ‘x’ was declared here 17 | int tip, x; | ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.002 secunde | Caught fatal signal 6 | 20 | 0 | Exemplu | |
| 2 | 0.003 secunde | Caught fatal signal 6 | 20 | 0 | ||
| 3 | 0.001 secunde | Caught fatal signal 6 | 20 | 0 | ||
| 4 | 0.002 secunde | Caught fatal signal 6 | 20 | 0 | ||
| 5 | 0.001 secunde | Caught fatal signal 6 | 20 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema toate 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ă.