记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:18: warning: right operand of comma operator has no effect [-Wunused-value]
    7 |         for(i=0,i<n,i++)
      |                 ~^~
foo.cc:7:24: error: expected ';' before ')' token
    7 |         for(i=0,i<n,i++)
      |                        ^
      |                        ;
foo.cc:15:21: error: 'penalty' was not declared in this scope
   15 |         printf("%d",penalty);
      |                     ^~~~~~~
foo.cc:16:9: error: expected primary-expression before 'return'
   16 |         return 0;
      |         ^~~~~~
foo.cc:15:30: error: expected ')' before 'return'
   15 |         printf("%d",penalty);
      |                              ^
      |                              )
   16 |         return 0;
      |         ~~~~~~                
foo.cc:7:12: note: to match this '('
    7 |         for(i=0,i<n,i++)
      |            ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1481 G. ACM and Penalty
语言
C++
递交时间
2023-08-25 16:46:49
评测时间
2023-08-25 16:46:49
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes