prog.cpp: In function ‘std::__cxx11::string prostring(std::__cxx11::string)’:
prog.cpp:6:3: error: ‘boolean’ was not declared in this scope
boolean isOn = false;
^~~~~~~
prog.cpp:8:11: error: array size missing in ‘s’
string s[];
^
prog.cpp:16:18: error: ‘std::__cxx11::string {aka class std::__cxx11::basic_string<char>}’ has no member named ‘charAt’
char x = input1.charAt(i);
^~~~~~
prog.cpp:17:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if(x == " ")
^~~
prog.cpp:22:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "@")
^~~
prog.cpp:23:7: error: ‘isOn’ was not declared in this scope
{ if(isOn==false)
^~~~
prog.cpp:32:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "#")
^~~
prog.cpp:38:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "<")
^~~
prog.cpp:42:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == ">")
^~~
prog.cpp:47:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "/")
^~~
prog.cpp:56:19: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
y=y.substr(0,y.length-1);
~~^~~~~~
prog.cpp:59:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "?")
^~~
prog.cpp:61:11: error: request for member ‘length’ in ‘s’, which is of non-class type ‘std::__cxx11::string [1] {aka std::__cxx11::basic_string<char> [1]}’
if(j==s.length-1)
^~~~~~
prog.cpp:68:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
else if(x == "^")
^~~
prog.cpp:79:8: error: ‘isOn’ was not declared in this scope
if(isOn == true)
^~~~
prog.cpp:93:9: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
h = t.length-n+1;
~~^~~~~~
prog.cpp:94:30: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
string temp = t.substr(0,t.length-n);
~~^~~~~~
prog.cpp:95:29: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
string temp1 = t.substr(t.length-n,n);
~~^~~~~~
prog.cpp:96:16: error: ‘strcat’ was not declared in this scope
strcat(temp,x);
^
prog.cpp:105:12: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
if(h==t.length)
~~^~~~~~
prog.cpp:118:38: error: invalid use of member function ‘std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type = long unsigned int]’ (did you forget the ‘()’ ?)
string temp1 = t.substr(h-1,t.length-h+1);
~~^~~~~~
prog.cpp:119:21: error: ‘strcat’ was not declared in this scope
strcat(temp,x);
^
prog.cpp:135:11: error: expected primary-expression before ‘]’ token
return s[];
^
prog.cpp: In function ‘int main()’:
prog.cpp:142:28: error: initializer fails to determine size of ‘g’
string g[]=prostring(input);
^
prog.cpp:143:18: error: request for member ‘length’ in ‘g’, which is of non-class type ‘std::__cxx11::string [1] {aka std::__cxx11::basic_string<char> [1]}’
for(int i=0;i<g.length;g++)
^~~~~~
prog.cpp:143:26: error: lvalue required as increment operand
for(int i=0;i<g.length;g++)
^~
prog.cpp:145:9: error: ‘s’ was not declared in this scope
cout<<s[i]<<endl;
^