F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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);
                           ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-09-29 05:22:40, Gzip enabled