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_13736521_18008.cpp:12:1: error: expected initializer before 'int'
 int n,k;
 ^
0_0_13736521_18008.cpp: In function 'void solve()':
0_0_13736521_18008.cpp:34:20: error: 'n' was not declared in this scope
     for(int i=1;i<=n;i++)
                    ^
0_0_13736521_18008.cpp:37:23: error: 'n' was not declared in this scope
        for(int i=1;i<=n;i++)
                       ^
0_0_13736521_18008.cpp:38:30: error: 'k' was not declared in this scope
         for(int j=1;j<=min(i,k);j++)
                              ^
0_0_13736521_18008.cpp:53:27: error: 'n' was not declared in this scope
         printf("%lld\n",d[n][k]);
                           ^
0_0_13736521_18008.cpp:53:30: error: 'k' was not declared in this scope
         printf("%lld\n",d[n][k]);
                              ^
0_0_13736521_18008.cpp: In function 'int main()':
0_0_13736521_18008.cpp:58:26: error: 'n' was not declared in this scope
     while(~scanf("%d%d",&n,&k))
                          ^
0_0_13736521_18008.cpp:58:29: error: 'k' was not declared in this scope
     while(~scanf("%d%d",&n,&k))
                             ^


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-30 02:41:17, Gzip enabled