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