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_17711112_28973.cpp:6:2: error: invalid preprocessing directive #defien
 #defien MAX 100000
  ^
0_0_17711112_28973.cpp: In function 'int main()':
0_0_17711112_28973.cpp:10:13: error: 'MAX' was not declared in this scope
     char s1[MAX*2+5],s2[MAX+5];
             ^
0_0_17711112_28973.cpp:11:16: error: 'str1' was not declared in this scope
     while(cin>>str1>>str2!=NULL){
                ^
0_0_17711112_28973.cpp:11:22: error: 'str2' was not declared in this scope
     while(cin>>str1>>str2!=NULL){
                      ^
0_0_17711112_28973.cpp:12:19: error: 's2' was not declared in this scope
         if(strlen(s2)>strlen(s1)){
                   ^
0_0_17711112_28973.cpp:12:30: error: 's1' was not declared in this scope
         if(strlen(s2)>strlen(s1)){
                              ^
0_0_17711112_28973.cpp:16:24: error: 's1' was not declared in this scope
         int len=strlen(s1);
                        ^
0_0_17711112_28973.cpp:20:22: error: 's2' was not declared in this scope
         if(strstr(s1,s2)!=0)printf("yes\n");
                      ^


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-07-05 23:17:52, Gzip enabled