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;
^
|