Anna.cpp: In function 'std::pair<std::__cxx11::basic_string<char>, int> anna(int, std::string)':
Anna.cpp:31:33: error: 'sm' cannot be used as a function
31 | char f = sm(c, d);
| ^
Anna.cpp:56:37: error: could not convert '{ans, 30}' from '<brace-enclosed initializer list>' to 'std::pair<int, std::__cxx11::basic_string<char> >'
56 | pair<int, string> so = {ans, 30};
| ^
| |
| <brace-enclosed initializer list>
Anna.cpp:58:12: error: could not convert 'so' from 'pair<int,std::__cxx11::basic_string<char>>' to 'pair<std::__cxx11::basic_string<char>,int>'
58 | return so;
| ^~
| |
| pair<int,std::__cxx11::basic_string<char>>
Anna.cpp: In function 'char sm(char, char)':
Anna.cpp:17:1: warning: control reaches end of non-void function [-Wreturn-type]
17 | }
| ^