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_20822195_25998.cpp: In function 'bool judge1()':
0_0_20822195_25998.cpp:3:28: error: 'strstr' was not declared in this scope
  char *ptr=strstr(buf,"zoj"),*tmp=buf;
                            ^
0_0_20822195_25998.cpp:4:10: error: 'NULL' was not declared in this scope
  if(ptr==NULL)
          ^
0_0_20822195_25998.cpp:7:10: error: 'tmp' was not declared in this scope
  for(i=0,tmp;tmp!=ptr;tmp++,i++)
          ^
0_0_20822195_25998.cpp: In function 'bool judge2()':
0_0_20822195_25998.cpp:17:26: error: 'strchr' was not declared in this scope
  char *ptr=strchr(buf,'z'),*tmp=buf;
                          ^
0_0_20822195_25998.cpp:18:10: error: 'NULL' was not declared in this scope
  if(ptr==NULL)
          ^
0_0_20822195_25998.cpp:21:10: error: 'tmp' was not declared in this scope
  for(i=0,tmp;tmp!=ptr;tmp++,i++)
          ^
0_0_20822195_25998.cpp: In function 'int main()':
0_0_20822195_25998.cpp:33:22: error: 'scanf' was not declared in this scope
  while(scanf("%s",buf)!=EOF)
                      ^
0_0_20822195_25998.cpp:33:25: error: 'EOF' was not declared in this scope
  while(scanf("%s",buf)!=EOF)
                         ^
0_0_20822195_25998.cpp:34:46: error: 'puts' was not declared in this scope
   puts((judge1() || judge2())?ans[0]:(ans[1]));
                                              ^


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-26 00:39:02, Gzip enabled