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_30861231_15516.cpp:1:1: error: 'include' does not name a type
 include<bits/stdc++.h>
 ^
0_0_30861231_15516.cpp: In function 'void getNext()':
0_0_30861231_15516.cpp:10:14: error: 'strlen' was not declared in this scope
  len=strlen(p);
              ^
0_0_30861231_15516.cpp: In function 'int main()':
0_0_30861231_15516.cpp:27:31: error: 'scanf' was not declared in this scope
  while(~scanf("%lld%lld",&a,&b))
                               ^
0_0_30861231_15516.cpp:30:25: error: 'sscanf' was not declared in this scope
   sscanf(s,"%*[^.].%s",s);
                         ^
0_0_30861231_15516.cpp:31:21: error: 'strlen' was not declared in this scope
   for(int i=strlen(s)-1,j=0;s[i];i--) p[j++]=s[i];
                     ^
0_0_30861231_15516.cpp:31:41: error: 'j' was not declared in this scope
   for(int i=strlen(s)-1,j=0;s[i];i--) p[j++]=s[i];
                                         ^
0_0_30861231_15516.cpp:34:25: error: 'strlen' was not declared in this scope
   for(ll i=2;i<=strlen(s);i++) ans=max(ans,a*i-b*(i-nxt[i]));
                         ^
0_0_30861231_15516.cpp:34:60: error: 'max' was not declared in this scope
   for(ll i=2;i<=strlen(s);i++) ans=max(ans,a*i-b*(i-nxt[i]));
                                                            ^
0_0_30861231_15516.cpp:35:22: error: 'printf' was not declared in this scope
   printf("%lld\n",ans);
                      ^


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-23 01:46:31, Gzip enabled