记录详情

Compile Error

/in/foo.cc: In function 'void setDice(char)':
/in/foo.cc:8:13: error: redeclaration of 'int u'
    8 |         int u = t[0], f = t[1], r = t[2];
      |             ^
/in/foo.cc:7:9: note: 'int u' previously declared here
    7 |     int u, f, r;
      |         ^
/in/foo.cc:8:23: error: redeclaration of 'int f'
    8 |         int u = t[0], f = t[1], r = t[2];
      |                       ^
/in/foo.cc:7:12: note: 'int f' previously declared here
    7 |     int u, f, r;
      |            ^
/in/foo.cc:8:33: error: redeclaration of 'int r'
    8 |         int u = t[0], f = t[1], r = t[2];
      |                                 ^
/in/foo.cc:7:15: note: 'int r' previously declared here
    7 |     int u, f, r;
      |               ^

信息

递交者
类型
递交
题目
P1157 1158. 骰子游戏
语言
C++
递交时间
2026-11-22 09:45:52
评测时间
2026-11-22 09:45:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes