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_29306522_14058.cpp: In function 'void dfs(int)':
0_0_29306522_14058.cpp:16:29: error: 'prim' cannot be used as a function
     if(c==n&&prim(num[n-1]+1))//如果排到了最后一位且与第一位的和满足条件
                             ^
0_0_29306522_14058.cpp:26:36: error: 'prim' cannot be used as a function
         if(!vis[i]&&prim(num[c-1]+i))//满足与上一位和为素数,且数字没有被使用过
                                    ^
0_0_29306522_14058.cpp: In function 'int main()':
0_0_29306522_14058.cpp:37:2: error: 'prime' was not declared in this scope
  prime[1]=prime[3]=prime[5]=prime[7]=prime[11]=prime[13]=prime[17]=prime[19]=prime[23]=prime[29]=prime[31]=prime[37]=prime[41]=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-10-06 06:44:23, Gzip enabled