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_27004058_26909.cpp:2:1: error: 'bitset' does not name a type
 bitset<1005>b[11];
 ^
0_0_27004058_26909.cpp:4:1: error: 'bitset' does not name a type
 bitset<1005>ans;
 ^
0_0_27004058_26909.cpp: In function 'int main()':
0_0_27004058_26909.cpp:14:11: error: 'cin' was not declared in this scope
     while(cin>>n)
           ^
0_0_27004058_26909.cpp:20:13: error: 'b' was not declared in this scope
             b[i].reset();
             ^
0_0_27004058_26909.cpp:28:26: error: 'scanf' was not declared in this scope
             scanf("%d",&t);
                          ^
0_0_27004058_26909.cpp:38:17: error: 'b' was not declared in this scope
                 b[k].set(i);
                 ^
0_0_27004058_26909.cpp:44:17: error: 'getchar' was not declared in this scope
         getchar();
                 ^
0_0_27004058_26909.cpp:46:15: error: 'gets' was not declared in this scope
         gets(s);
               ^
0_0_27004058_26909.cpp:48:9: error: 'ans' was not declared in this scope
         ans.reset();
         ^
0_0_27004058_26909.cpp:50:27: error: 'strlen' was not declared in this scope
         int len = strlen(s);
                           ^
0_0_27004058_26909.cpp:60:18: error: 'b' was not declared in this scope
             ans&=b[s[i]-'0'];
                  ^
0_0_27004058_26909.cpp:70:29: error: 'puts' was not declared in this scope
                 puts(s+i+1-n);
                             ^


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 10:03:26, Gzip enabled