/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:18:24: error: 'res' was not declared in this scope
      if (i * (i - 1) < res && res <= (i + 1) * i) {
                        ^~~
/in/foo.cc:17:10: warning: unused variable 'res2' [-Wunused-variable]
      int res2 = 2 * n;
          ^~~~
/in/foo.cc:32:21: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
     printf("%d", ans);
                     ^

信息

递交者
类型
递交
题目
P1073 4-Hanoi-Tower
语言
C++
递交时间
2019-03-31 15:13:52
评测时间
2019-03-31 15:13:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes