/ XMU_ACM /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:71:35: warning: for increment expression has no effect [-Wunused-value]
             for (int orz = i;;orz <= n;orz *= i) {
                               ~~~~^~~~
/in/foo.cc:71:39: error: expected ')' before ';' token
             for (int orz = i;;orz <= n;orz *= i) {
                                       ^
/in/foo.cc:71:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
             for (int orz = i;;orz <= n;orz *= i) {
             ^~~
/in/foo.cc:71:40: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'for'
             for (int orz = i;;orz <= n;orz *= i) {
                                        ^~~
/in/foo.cc:71:40: error: 'orz' was not declared in this scope

信息

递交者
类型
递交
题目
P1074 选择
语言
C++
递交时间
2021-01-18 21:40:45
评测时间
2021-01-18 21:40:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes