prog.cpp: In function ‘void _printParenthesis(int, int, int)’:
prog.cpp:25:16: error: incompatible types in assignment of ‘char*’ to ‘char [100]’
str = str + ')'
^~~
prog.cpp:30:16: error: incompatible types in assignment of ‘char*’ to ‘char [100]’
str = str + '(';
^~~
prog.cpp: In function ‘int main()’:
prog.cpp:39:2: error: ‘cin’ was not declared in this scope
cin >> n;
^~~
prog.cpp:39:2: note: suggested alternative:
In file included from prog.cpp:1:
/usr/include/c++/8/iostream:60:18: note: ‘std::cin’
extern istream cin; /// Linked to standard input
^~~