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_20997322_3260.cpp:3:1: error: 'LL' does not name a type
 LL dp[310][310];
 ^
0_0_20997322_3260.cpp: In function 'void donggui()':
0_0_20997322_3260.cpp:9:35: error: '__gcd' was not declared in this scope
                 if(__gcd(a[i],a[j])!=1){
                                   ^
0_0_20997322_3260.cpp:10:21: error: 'dp' was not declared in this scope
                     dp[j][i]=max((LL)b[i]+b[j],dp[j][i]);
                     ^
0_0_20997322_3260.cpp:10:35: error: 'LL' was not declared in this scope
                     dp[j][i]=max((LL)b[i]+b[j],dp[j][i]);
                                   ^
0_0_20997322_3260.cpp:10:56: error: 'max' was not declared in this scope
                     dp[j][i]=max((LL)b[i]+b[j],dp[j][i]);
                                                        ^
0_0_20997322_3260.cpp:15:50: error: '__gcd' was not declared in this scope
                 if(c[j+1][i-1] && __gcd(a[i],a[j])!=1){
                                                  ^
0_0_20997322_3260.cpp:16:21: error: 'dp' was not declared in this scope
                     dp[j][i]=max(dp[j][i],dp[j+1][i-1]+(LL)b[i]+b[j]);
                     ^
0_0_20997322_3260.cpp:16:57: error: 'LL' was not declared in this scope
                     dp[j][i]=max(dp[j][i],dp[j+1][i-1]+(LL)b[i]+b[j]);
                                                         ^
0_0_20997322_3260.cpp:16:69: error: 'max' was not declared in this scope
                     dp[j][i]=max(dp[j][i],dp[j+1][i-1]+(LL)b[i]+b[j]);
                                                                     ^
0_0_20997322_3260.cpp:22:24: error: 'dp' was not declared in this scope
                     if(dp[j][i] < dp[j][k]+dp[k+1][i]){
                        ^
0_0_20997322_3260.cpp:23:66: error: 'max' was not declared in this scope
                         dp[j][i]=max(dp[j][i],dp[j][k]+dp[k+1][i]);
                                                                  ^
0_0_20997322_3260.cpp: In function 'int main()':
0_0_20997322_3260.cpp:40:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&T)!=EOF){
                        ^
0_0_20997322_3260.cpp:40:27: error: 'EOF' was not declared in this scope
     while(scanf("%d",&T)!=EOF){
                           ^
0_0_20997322_3260.cpp:42:20: error: 'dp' was not declared in this scope
             memset(dp,0,sizeof(dp));
                    ^
0_0_20997322_3260.cpp:42:35: error: 'memset' was not declared in this scope
             memset(dp,0,sizeof(dp));
                                   ^
0_0_20997322_3260.cpp:50:13: error: 'LL' was not declared in this scope
             LL ans=0;
             ^
0_0_20997322_3260.cpp:53:21: error: 'ans' was not declared in this scope
                     ans=max(ans,dp[i][j]);
                     ^
0_0_20997322_3260.cpp:53:41: error: 'max' was not declared in this scope
                     ans=max(ans,dp[i][j]);
                                         ^
0_0_20997322_3260.cpp:56:13: error: 'cout' was not declared in this scope
             cout<<ans<<endl;
             ^
0_0_20997322_3260.cpp:56:19: error: 'ans' was not declared in this scope
             cout<<ans<<endl;
                   ^
0_0_20997322_3260.cpp:56:24: error: 'endl' was not declared in this scope
             cout<<ans<<endl;
                        ^


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-09-21 11:08:10, Gzip enabled