0_0_32889603_20714.cpp:8:14: error: expected primary-expression before '=' token
#define MAXN = 100005;
^
0_0_32889603_20714.cpp:29:9: note: in expansion of macro 'MAXN'
char s1[MAXN],s2[MAXN],ans[MAXN];
^
0_0_32889603_20714.cpp:8:22: error: expected ']' before ';' token
#define MAXN = 100005;
^
0_0_32889603_20714.cpp:29:9: note: in expansion of macro 'MAXN'
char s1[MAXN],s2[MAXN],ans[MAXN];
^
0_0_32889603_20714.cpp:29:13: error: expected unqualified-id before ']' token
char s1[MAXN],s2[MAXN],ans[MAXN];
^
0_0_32889603_20714.cpp:29:22: error: expected unqualified-id before ']' token
char s1[MAXN],s2[MAXN],ans[MAXN];
^
0_0_32889603_20714.cpp:29:32: error: expected unqualified-id before ']' token
char s1[MAXN],s2[MAXN],ans[MAXN];
^
0_0_32889603_20714.cpp: In function 'void dfs(int, int, int)':
0_0_32889603_20714.cpp:38:17: error: 'ans' was not declared in this scope
printf("%c ",ans[i]);
^
0_0_32889603_20714.cpp:44:10: error: 's1' was not declared in this scope
s.push(s1[cnt + 1]);
^
0_0_32889603_20714.cpp:45:3: error: 'ans' was not declared in this scope
ans[stp] = 'i';
^
0_0_32889603_20714.cpp:50:30: error: 's2' was not declared in this scope
if(!s.empty() && s.top() == s2[pos])
^
0_0_32889603_20714.cpp:54:3: error: 'ans' was not declared in this scope
ans[stp] = 'o';
^
0_0_32889603_20714.cpp: In function 'int main()':
0_0_32889603_20714.cpp:63:13: error: 's1' was not declared in this scope
while(gets(s1 + 1) != NULL)
^
0_0_32889603_20714.cpp:65:8: error: 's2' was not declared in this scope
gets(s2 + 1);
^
|