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_39633227_31585.cpp:2:8: error: no macro name given in #define directive
    2 | #define
      |        ^
0_0_39633227_31585.cpp:6:8: error: 'A' was not declared in this scope
    6 | bool f[A][A][A];
      |        ^
0_0_39633227_31585.cpp:6:11: error: 'A' was not declared in this scope
    6 | bool f[A][A][A];
      |           ^
0_0_39633227_31585.cpp:6:14: error: 'A' was not declared in this scope
    6 | bool f[A][A][A];
      |              ^
0_0_39633227_31585.cpp:7:7: error: 'A' was not declared in this scope
    7 | int a[A], n, T;
      |       ^
0_0_39633227_31585.cpp: In function 'bool check(int, int, int)':
0_0_39633227_31585.cpp:13:54: error: 'a' was not declared in this scope
   13 |     for (int j = 10; j > 0; j--) b[j] |= b[j - 1] << a[i];
      |                                                      ^
0_0_39633227_31585.cpp: In function 'int main(int, const char**)':
0_0_39633227_31585.cpp:21:22: error: 'f' was not declared in this scope
   21 |     cin >> n; memset(f, 0, sizeof f);
      |                      ^
0_0_39633227_31585.cpp:22:47: error: 'a' was not declared in this scope
   22 |     for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
      |                                               ^


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-22 09:15:55, Gzip enabled