Problem hackinggate
User bribritt
Submission Time 2024-12-18 11:00:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hackinggate.cpp:42:12: error: ‘k’ was not declared in this scope
42 | int dp[1<<k];
| ^
hackinggate.cpp:43:8: error: expected constructor, destructor, or type conversion before ‘(’ token
43 | memset(dp,1,sizeof(dp));
| ^
hackinggate.cpp:44:2: error: ‘dp’ does not name a type
44 | dp[0]=0;
| ^~
hackinggate.cpp:45:2: error: expected unqualified-id before ‘for’
45 | for(int i=0;i<(1<<k);i++) for(int j=0;j<k;j++) for(int m=j+1;m<k;m++) if(!(i&(1<<j)) && !(i&(1<<m)) && (~dist[j][pts[m]]))
| ^~~
hackinggate.cpp:45:14: error: ‘i’ does not name a type
45 | for(int i=0;i<(1<<k);i++) for(int j=0;j<k;j++) for(int m=j+1;m<k;m++) if(!(i&(1<<j)) && !(i&(1<<m)) && (~dist[j][pts[m]]))
| ^
hackinggate.cpp:45:23: error: ‘i’ does not name a type
45 | for(int i=0;i<(1<<k);i++) for(int j=0;j<k;j++) for(