记录详情

Accepted

foo.cc: In function ‘int main()’:
foo.cc:7:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
    7 |         for(int i=1;i<=sum;i++)
      |         ^~~
foo.cc:15:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
   15 |                 cout<<x;
      |                 ^~~~
foo.cc:5:13: warning: unused variable ‘j’ [-Wunused-variable]
    5 |         int j,i,x=0,sum;
      |             ^
foo.cc:5:15: warning: unused variable ‘i’ [-Wunused-variable]
    5 |         int j,i,x=0,sum;
      |               ^
正在同步测试数据,请稍后
# 状态 耗时 内存占用
#1 Accepted 3ms 536.0 KiB
#2 Accepted 3ms 536.0 KiB
#3 Accepted 3ms 764.0 KiB
#4 Accepted 2ms 324.0 KiB
#5 Accepted 2ms 764.0 KiB
#6 Accepted 3ms 536.0 KiB
#7 Accepted 2ms 536.0 KiB
#8 Accepted 2ms 536.0 KiB
#9 Accepted 3ms 324.0 KiB
#10 Accepted 2ms 536.0 KiB

信息

递交者
类型
递交
题目
P1098 长方形面积
语言
C++
递交时间
2024-04-14 14:56:18
评测时间
2024-04-14 14:56:18
评测机
分数
100
总耗时
31ms
峰值内存
764.0 KiB