/in/foo.cc: In function 'std::__cxx11::string getSwapped(std::__cxx11::string)':
/in/foo.cc:6:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < a.size() / 2; ++i){
~~^~~~~~~~~~~~~~
/in/foo.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:24:2: error: 'swappedA' was not declared in this scope
swappedA = getSwapped(a);
^~~~~~~~
/in/foo.cc:36:2: error: 'swappedB' was not declared in this scope
swappedB = getSwapped(b);
^~~~~~~~