Accepted

foo.cc: In function 'int main()':
foo.cc:23:9: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   23 |         for (int i =2;i<=n;i++)
      |         ^~~
foo.cc:29:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   29 |                 cout << cnt;
      |                 ^~~~
foo.cc:21:13: warning: unused variable 'a' [-Wunused-variable]
   21 |         int a ,b,n = 6,cnt=0;
      |             ^
foo.cc:21:16: warning: unused variable 'b' [-Wunused-variable]
   21 |         int a ,b,n = 6,cnt=0;
      |                ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 4ms 412.0 KiB
#2 Accepted 4ms 412.0 KiB
#3 Accepted 4ms 412.0 KiB
#4 Accepted 13ms 404.0 KiB
#5 Accepted 50ms 400.0 KiB

信息

递交者
类型
递交
题目
P1318 5-1 互质数
比赛
2023.8高级班结业模拟测试
语言
C++
递交时间
2023-08-09 09:16:40
评测时间
2023-08-09 09:16:40
评测机
分数
100
总耗时
78ms
峰值内存
412.0 KiB