#3974
Se dau 2 mulţimi de numere naturale. Să se afișeze mulţimea rezultată în urma efectuării unei operații.
| Problema | IRDDS | Operații I/O |
tastatură/ecran
|
|---|---|---|---|
| Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
| Id soluție | #62099487 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 2.77 KB |
| Data încărcării | 08 Ianuarie 2026, 17:39 | Scor/rezultat | 0 puncte |
irdds.cpp: In function 'std::vector<int> intersectie(std::vector<int>&, std::vector<int>&)': irdds.cpp:10:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:10:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:11:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= a.size()) { ^ irdds.cpp:14:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if (j >= b.size()) { ^ irdds.cpp: In function 'std::vector<int> reuniune(std::vector<int>&, std::vector<int>&)': irdds.cpp:37:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:37:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:38:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= a.size()) { ^ irdds.cpp:41:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if (j >= b.size()) { ^ irdds.cpp: In function 'std::vector<int> diferenta(std::vector<int>&, std::vector<int>&)': irdds.cpp:66:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:66:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:67:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= a.size()) { ^ irdds.cpp:70:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if (j >= b.size()) { ^ irdds.cpp: In function 'std::vector<int> dif_sim(std::vector<int>&, std::vector<int>&)': irdds.cpp:96:36: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:96:52: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0, j = 0; i < a.size() || j < b.size(); ) { ^ irdds.cpp:97:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (i >= a.size()) { ^ irdds.cpp:100:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] } else if (j >= b.size()) { ^ irdds.cpp: In function 'void print(const std::vector<int>&)': irdds.cpp:122:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0; i < c.size(); i++) { ^
| Test | Timp | Mesaj evaluare | Scor posibil | Scor obținut | ||
|---|---|---|---|---|---|---|
| 1 | 0.196 secunde | Raspuns gresit. | 10 | 0 | ||
| 2 | 0.196 secunde | Raspuns gresit. | 10 | 0 | ||
| 3 | 0.16 secunde | Raspuns gresit. | 10 | 0 | ||
| 4 | 0.152 secunde | Raspuns gresit. | 10 | 0 | ||
| 5 | 0.236 secunde | Raspuns gresit. | 10 | 0 | ||
| 6 | 0.184 secunde | Raspuns gresit. | 10 | 0 | ||
| 7 | 0.264 secunde | Raspuns gresit. | 10 | 0 | ||
| 8 | 0.196 secunde | Raspuns gresit. | 10 | 0 | ||
| 9 | 0.116 secunde | Raspuns gresit. | 10 | 0 | ||
| 10 | 0.264 secunde | Raspuns gresit. | 10 | 0 | ||
| Punctaj total | 0 | |||||
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema IRDDS 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ă.