0_0_32722545_20336.cpp:1:17: error: missing terminating > character
#include <string
^
0_0_32722545_20336.cpp:2:2: error: stray '#' in program
>#include <iostream>
^
0_0_32722545_20336.cpp:2:1: error: expected unqualified-id before '>' token
>#include <iostream>
^
0_0_32722545_20336.cpp:4:18: error: 'string' does not name a type
struct Node { string head,cont,tail;};
^
0_0_32722545_20336.cpp:5:20: error: 'string' does not name a type
int matching(const string& s,int sta,int des) {
^
0_0_32722545_20336.cpp: In function 'int matching(const int&, int, int)':
0_0_32722545_20336.cpp:8:9: error: invalid types 'const int[int]' for array subscript
if(s[sta]=='(') ++cnt;
^
0_0_32722545_20336.cpp:9:14: error: invalid types 'const int[int]' for array subscript
else if(s[sta]==')') { --cnt;
^
0_0_32722545_20336.cpp: At global scope:
0_0_32722545_20336.cpp:11:1: error: 'string' does not name a type
string solve(const string& s,int sta,int des) { if(sta>des) return "";
^
|