记录详情

Accepted

foo.cc: In function ‘bool isPrime(long long int)’:
foo.cc:10:5: warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
   10 |     if(num == 2 || num == 3 )
      |     ^~
foo.cc:12:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘if’
   12 |         if(num % 6 != 1 && num % 6 != 5)
      |         ^~
foo.cc: In function ‘int main()’:
foo.cc:29:26: warning: comparison of integer expressions of different signedness: ‘int’ and ‘std::vector<int>::size_type’ {aka ‘long unsigned int’} [-Wsign-compare]
   29 |         for(int i = 0; i < v.size(); i++)
      |                        ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 516.0 KiB
#2 Accepted 2ms 536.0 KiB
#3 Accepted 3ms 536.0 KiB
#4 Accepted 5ms 576.0 KiB
#5 Accepted 18ms 604.0 KiB

信息

递交者
类型
递交
比赛
2024春 面向对象的程序设计方法(第3场作业赛)
语言
C++
递交时间
2024-05-05 11:48:18
评测时间
2024-05-05 11:48:18
评测机
分数
100
总耗时
32ms
峰值内存
604.0 KiB