/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:23: warning: for increment expression has no effect [-Wunused-value]
    7 |         for(int i=1;;i<=n;i++){
      |                      ~^~~
/in/foo.cc:7:26: error: expected ')' before ';' token
    7 |         for(int i=1;;i<=n;i++){
      |            ~             ^
      |                          )
/in/foo.cc:7:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
    7 |         for(int i=1;;i<=n;i++){
      |         ^~~
/in/foo.cc:7:27: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
    7 |         for(int i=1;;i<=n;i++){
      |                           ^
/in/foo.cc:7:27: error: 'i' was not declared in this scope

信息

递交者
类型
自测
题目
P1097 合并果子
语言
C++
递交时间
2026-09-25 11:48:15
评测时间
2026-09-25 11:48:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes