ამ გვერდზე თქვენ იხილავთ გაგზავნილი ამოხსნების სტატუსს.
გაგზავნის თარიღი: 20.01.2023 13:59:52
ამოცანა: ანაგრამა
მომხმარებელი: DaTo69KoBuLa
ვერდიქტი: ამოუხსნელი
შეფასება: 0 ქულა
#include <iostream> #include <algorithm> string s1,s2; using namespace std; int main() { cin>>s1>>s2; sort(s1.begin(), s1.end()); sort(s2.begin(), s2.end()); if(s1==s2) cout<<"YES"; else cout<<"NO"; }
main.cpp:3:1: error: 'string' does not name a type string s1,s2; ^~~~~~ main.cpp: In function 'int main()': main.cpp:7:10: error: 's1' was not declared in this scope cin>>s1>>s2; ^~ main.cpp:7:14: error: 's2' was not declared in this scope cin>>s1>>s2; ^~