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_20607563_6935.cpp:5:1: error: 'bitset' does not name a type
 bitset<MAX_N> bs[10], dp[2];
 ^
0_0_20607563_6935.cpp: In function 'void solve()':
0_0_20607563_6935.cpp:7:22: error: 'strlen' was not declared in this scope
  len = strlen(str + 1);
                      ^
0_0_20607563_6935.cpp:8:2: error: 'dp' was not declared in this scope
  dp[0].reset(), dp[1].reset();
  ^
0_0_20607563_6935.cpp:13:34: error: 'bs' was not declared in this scope
   dp[now] = (dp[now ^ 1] << 1) & bs[str[i] - '0'];
                                  ^
0_0_20607563_6935.cpp:18:36: error: 'printf' was not declared in this scope
    printf("%s\n", str + (i - n + 1));
                                    ^
0_0_20607563_6935.cpp: In function 'int main()':
0_0_20607563_6935.cpp:24:24: error: 'scanf' was not declared in this scope
  while (~scanf("%d", &n)) {
                        ^
0_0_20607563_6935.cpp:25:34: error: 'bs' was not declared in this scope
   for (int i = 0; i < 10; ++i) { bs[i].reset(); }
                                  ^
0_0_20607563_6935.cpp:31:5: error: 'bs' was not declared in this scope
     bs[y][i] = 1;
     ^


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-27 00:02:55, Gzip enabled