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_30382616_31987.cpp: In function 'int main()':
0_0_30382616_31987.cpp:7:48: error: expected '}' at end of input
 int main(){ int cas,len1,len2,i,j,cnt; cin>>cas; //scanf("%d",&cas); while(cas--) {  scanf("%s%s",str1,str2);  len1=strlen(str1);  len2=strlen(str2);  cnt=0;  for(i=0;i<len1;i++)  {   for(j=0;j<len2;j++)   {    if(str1[i]!=str2[j])    {     i=i-j;     break;    }    i++;   }   if(j==len2)    cnt++,i--;  }  printf("%d\n",cnt); } return 0;}
                                                ^


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-11-25 12:59:00, Gzip enabled