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_37976559_28208.cpp:1:10: error: stray '#' in program
 z20021208#include<bits/stdc++.h>
          ^
0_0_37976559_28208.cpp:1:1: error: 'z20021208' does not name a type
 z20021208#include<bits/stdc++.h>
 ^
0_0_37976559_28208.cpp: In function 'void read(T&)':
0_0_37976559_28208.cpp:6:30: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
  x=0;T fl=1;char tmp=getchar();
                              ^
0_0_37976559_28208.cpp:6:30: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_37976559_28208.cpp:7:56: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
  while(tmp<'0'||tmp>'9')fl=tmp=='-'?-fl:fl,tmp=getchar();
                                                        ^
0_0_37976559_28208.cpp:8:63: error: there are no arguments to 'getchar' that depend on a template parameter, so a declaration of 'getchar' must be available [-fpermissive]
  while(tmp>='0'&&tmp<='9')x=(x<<1)+(x<<3)+tmp-'0',tmp=getchar();
                                                               ^
0_0_37976559_28208.cpp: In function 'int main()':
0_0_37976559_28208.cpp:19:8: error: 'cin' was not declared in this scope
  int T;cin>>T;
        ^
0_0_37976559_28208.cpp:21:23: error: 'scanf' was not declared in this scope
   scanf("%s%s",s+1,t+1);
                       ^
0_0_37976559_28208.cpp:22:15: error: 'strlen' was not declared in this scope
   n=strlen(s+1),m=strlen(t+1);
               ^
0_0_37976559_28208.cpp:33:22: error: 'memset' was not declared in this scope
   memset(f,0,sizeof f);
                      ^
0_0_37976559_28208.cpp:56:24: error: 'puts' was not declared in this scope
   if(f[m][n])puts("yes");
                        ^
0_0_37976559_28208.cpp:57:17: error: 'puts' was not declared in this scope
   else puts("no");
                 ^


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-22 18:03:12, Gzip enabled