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_38838021_23759.cpp: In function 'void init(int, int, int, int)':
0_0_38838021_23759.cpp:30:15: error: request for member 'reset' in 'dp[i]', which is of non-class type 'std::bitset<105> [15]'
   30 |         dp[i].reset();
      |               ^~~~~
0_0_38838021_23759.cpp:40:30: error: invalid operands of types 'std::bitset<105> [15]' and 'int' to binary 'operator<<'
   40 |             dp[j] |= (dp[j-1]<<a[i]);
      |                       ~~~~~~~^~~~~~
      |                             |     |
      |                             |     int
      |                             std::bitset<105> [15]
0_0_38838021_23759.cpp:43:31: error: invalid cast from type 'std::bitset<105>' to type 'int'
   43 |     mmp[x][y][z]=mmp[x][z][y]=(int)(dp[10][87]);
      |                               ^~~~~~~~~~~~~~~~~
0_0_38838021_23759.cpp:44:31: error: invalid cast from type 'std::bitset<105>' to type 'int'
   44 |     mmp[y][x][z]=mmp[y][z][x]=(int)(dp[10][87]);
      |                               ^~~~~~~~~~~~~~~~~
0_0_38838021_23759.cpp:45:31: error: invalid cast from type 'std::bitset<105>' to type 'int'
   45 |     mmp[z][y][x]=mmp[z][x][y]=(int)(dp[10][87]);
      |                               ^~~~~~~~~~~~~~~~~


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 15:30:08, Gzip enabled