#3974
IRDDS
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 |
![]() |
---|---|---|---|
Limita timp | 0.3 secunde | Limita memorie |
Total: 8 MB
/
Stivă 4 MB
|
Id soluție | #58436529 | Utilizator | |
Fișier | irdds.cpp | Dimensiune | 2.03 KB |
Data încărcării | 04 Iunie 2025, 11:42 | Scor / rezultat | Eroare de compilare |
irdds.cpp:1:2: error: invalid preprocessing directive #inlcude #inlcude <iostream> ^ irdds.cpp: In function 'int main()': irdds.cpp:100:5: error: 'cin' was not declared in this scope cin >> n >> m >> op; ^ irdds.cpp:109:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(op == "*") ^ irdds.cpp:109:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:111:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(op == "+") ^ irdds.cpp:111:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:113:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(op == "-") ^ irdds.cpp:113:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:115:14: warning: comparison with string literal results in unspecified behaviour [-Waddress] if(op == "%") ^ irdds.cpp:115:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive] irdds.cpp:120:6: error: 'cout' was not declared in this scope cout << c[k] << " "; ^
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ă.