0_0_21942065_18329.cpp:2:1: error: 'string' does not name a type
string s1,s2,s3,temp;
^
0_0_21942065_18329.cpp: In function 'void dfs(int, int)':
0_0_21942065_18329.cpp:9:8: error: 's1' was not declared in this scope
if(i==s1.length()&&j==s2.length()){
^
0_0_21942065_18329.cpp:9:24: error: 's2' was not declared in this scope
if(i==s1.length()&&j==s2.length()){
^
0_0_21942065_18329.cpp:13:5: error: 's3' was not declared in this scope
if(s3[i+j]!=s1[i]&&s3[i+j]!=s2[j])return;
^
0_0_21942065_18329.cpp:13:14: error: 's1' was not declared in this scope
if(s3[i+j]!=s1[i]&&s3[i+j]!=s2[j])return;
^
0_0_21942065_18329.cpp:13:30: error: 's2' was not declared in this scope
if(s3[i+j]!=s1[i]&&s3[i+j]!=s2[j])return;
^
0_0_21942065_18329.cpp:14:5: error: 's3' was not declared in this scope
if(s3[i+j]==s1[i]&&!visit[i+1][j]){
^
0_0_21942065_18329.cpp:14:14: error: 's1' was not declared in this scope
if(s3[i+j]==s1[i]&&!visit[i+1][j]){
^
0_0_21942065_18329.cpp:17:5: error: 's3' was not declared in this scope
if(s3[i+j]==s2[j]&&!visit[i][j+1]){
^
0_0_21942065_18329.cpp:17:14: error: 's2' was not declared in this scope
if(s3[i+j]==s2[j]&&!visit[i][j+1]){
^
0_0_21942065_18329.cpp: In function 'int main()':
0_0_21942065_18329.cpp:26:21: error: 'scanf' was not declared in this scope
scanf("%d",&casenum);getchar();
^
0_0_21942065_18329.cpp:26:31: error: 'getchar' was not declared in this scope
scanf("%d",&casenum);getchar();
^
0_0_21942065_18329.cpp:29:11: error: 'cin' was not declared in this scope
getline(cin,temp);
^
0_0_21942065_18329.cpp:29:15: error: 'temp' was not declared in this scope
getline(cin,temp);
^
0_0_21942065_18329.cpp:29:19: error: 'getline' was not declared in this scope
getline(cin,temp);
^
0_0_21942065_18329.cpp:31:3: error: 's1' was not declared in this scope
s1=temp.substr(0,it);
^
0_0_21942065_18329.cpp:33:3: error: 's2' was not declared in this scope
s2=temp.substr(it+1,it2-it-1);
^
0_0_21942065_18329.cpp:34:3: error: 's3' was not declared in this scope
s3=temp.substr(it2+1,temp.length());
^
0_0_21942065_18329.cpp:36:31: error: 'memset' was not declared in this scope
memset(visit,0,sizeof(visit));
^
0_0_21942065_18329.cpp:39:27: error: 'printf' was not declared in this scope
printf("Data set %d: ",i);
^
|