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