记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:4:19: error: expected initializer before 'm'
  unsigned __int64 m,a[64];
                   ^
/in/foo.cc:7:6: error: 'a' was not declared in this scope
  for(a[0]=0,i=1; i<=63; i++)
      ^
/in/foo.cc:10:22: error: 'm' was not declared in this scope
  scanf("%d%I64u",&n,&m);
                      ^
/in/foo.cc:16:9: error: 'a' was not declared in this scope
   if(m<=a[n]) {
         ^
/in/foo.cc:35:22: warning: suggest parentheses around '-' inside '<<' [-Wparentheses]
    ans+=(1<<row[i][j]-1);
             ~~~~~~~~~^~
/in/foo.cc:37:19: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d ",ans);
                   ^
/in/foo.cc:5:8: warning: unused variable 't' [-Wunused-variable]
  int n,t,i,j,row[3][66];
        ^

信息

递交者
类型
递交
题目
2-3 Hanoi游戏的状态
比赛
南师大2018年蓝桥杯热身赛
语言
C++
递交时间
2018-12-12 16:26:10
评测时间
2018-12-12 16:26:10
评测机
分数
0
总耗时
15ms
峰值内存
3.418 MiB