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_29779173_11550.cpp:11:1: error: expected unqualified-id before '?' token
 ?int n,ans,k;                            
 ^
0_0_29779173_11550.cpp: In function 'void dfs2(int, int)':
0_0_29779173_11550.cpp:33:20: error: 'n' was not declared in this scope
         dp[x][1]+=(n-num[x]);
                    ^
0_0_29779173_11550.cpp: In function 'void dfs3(int, int)':
0_0_29779173_11550.cpp:49:24: error: 'k' was not declared in this scope
         for(int j=2;j<=k;j++)
                        ^
0_0_29779173_11550.cpp:63:23: error: 'k' was not declared in this scope
             for(int v=k-1;v>=0;v--)
                       ^
0_0_29779173_11550.cpp:70:5: error: 'ans' was not declared in this scope
     ans=min(ans,dp[x][0]+dp[x][1]-dis[2][k-1]);
     ^
0_0_29779173_11550.cpp:70:42: error: 'k' was not declared in this scope
     ans=min(ans,dp[x][0]+dp[x][1]-dis[2][k-1]);
                                          ^
0_0_29779173_11550.cpp: In function 'int main()':
0_0_29779173_11550.cpp:75:25: error: 'n' was not declared in this scope
     while(scanf("%d%d",&n,&k)!=EOF&&n)
                         ^
0_0_29779173_11550.cpp:75:28: error: 'k' was not declared in this scope
     while(scanf("%d%d",&n,&k)!=EOF&&n)
                            ^
0_0_29779173_11550.cpp:92:9: error: 'ans' was not declared in this scope
         ans=INF;
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 16:54:04, Gzip enabled