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_36464535_27553.cpp: In function 'bool c(int, int)':
0_0_36464535_27553.cpp:12:20: error: 'bool c(int, int)' redeclared as different kind of symbol
 bool c(int op,int x){return op&(1<<(x-1));}
                    ^
0_0_36464535_27553.cpp:10:7: note: previous declaration 'int c'
 int n,c,a[1001],dp[1001][101][32],can[32][32];
       ^
0_0_36464535_27553.cpp: In function 'int main()':
0_0_36464535_27553.cpp:27:14: error: 'c' cannot be used as a function
     if(c(op,i))
              ^
0_0_36464535_27553.cpp:28:4: error: expected primary-expression before '}' token
    }
    ^
0_0_36464535_27553.cpp:30:11: error: 'i' was not declared in this scope
   dp[1][a[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-22 12:19:38, Gzip enabled