#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 | #63167404 | Utilizator | |
| Fișier | irdds.cpp | Dimensiune | 1.54 KB |
| Data încărcării | 18 Februarie 2026, 15:01 | Scor/rezultat | Eroare de compilare |
irdds.cpp: In function 'int main()': irdds.cpp:32:23: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:32:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:32:36: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:32:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:32:49: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:32:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:41:23: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "*") ^ irdds.cpp:41:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:41:36: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "*") ^ irdds.cpp:41:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:51:23: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "%") ^ irdds.cpp:51:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:51:36: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "%") ^ irdds.cpp:51:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:60:23: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:60:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:60:36: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:60:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:60:49: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "-" || op == "%") ^ irdds.cpp:60:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:69:23: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "%") ^ irdds.cpp:69:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:69:36: warning: comparison with string literal results in unspecified behaviour [-Waddress] if (op == "+" || op == "%") ^ irdds.cpp:69:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
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ă.