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_20702794_26191.c: In function 'main':
0_0_20702794_26191.c:4:11: error: expected identifier or '(' before numeric constant
 #define N 1010
           ^
0_0_20702794_26191.c:14:9: note: in expansion of macro 'N'
     int N, V;
         ^
0_0_20702794_26191.c:25:24: error: lvalue required as unary '&' operand
         scanf("%d %d", &N, &V);
                        ^
0_0_20702794_26191.c:25:29: error: 'V' undeclared (first use in this function)
         scanf("%d %d", &N, &V);
                             ^
0_0_20702794_26191.c:25:29: note: each undeclared identifier is reported only once for each function it appears in
0_0_20702794_26191.c:35:27: error: 'b' undeclared (first use in this function)
         printf("%d\n", dp[b]);
                           ^


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-28 11:18:49, Gzip enabled