/in/foo.cc:59:2: error: stray '#' in program
}#include <iostream>
^
/in/foo.cc: In function 'Result Match(std::__cxx11::string&)':
/in/foo.cc:15:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); i++)
~~^~~~~~~~~~~~
/in/foo.cc:19:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (s[i] == ')')
^
/in/foo.cc: At global scope:
/in/foo.cc:59:3: error: 'include' does not name a type
}#include <iostream>
^~~~~~~
/in/foo.cc:63:8: error: redefinition of 'struct Result'
struct Result
^~~~~~
/in/foo.cc:5:8: error: previous definition of 'struct Result'
struct Result
^~~~~~
/in/foo.cc: In function 'Result Match(std::__cxx11::string&)':
/in/foo.cc:69:8: error: redefinition of 'Result Match(std::__cxx11::string&)'
Result Match(string &s)
^~~~~
/in/foo.cc:11:8: note: 'Result Match(std::__cxx11::string&)' previously defined here
Result Match(string &s)
^~~~~
/in/foo.cc:73:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.length(); i++)
~~^~~~~~~~~~~~
/in/foo.cc:77:12: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if (s[i] == ')')
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:97:5: error: redefinition of 'int main()'
int main()
^~~~
/in/foo.cc:39:5: note: 'int main()' previously defined here
int main()
^~~~