/ JamesKC /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:3:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
    3 | #define rep(i,n) for(int (i)=1;(i)<=n;++(i))
      |                          ^
foo.cc:21:2: note: in expansion of macro 'rep'
   21 |  rep(i,n)fa[i]=i,sz[i]=1;
      |  ^~~
foo.cc:3:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
    3 | #define rep(i,n) for(int (i)=1;(i)<=n;++(i))
      |                          ^
foo.cc:22:2: note: in expansion of macro 'rep'
   22 |  rep(i,m){
      |  ^~~
foo.cc:3:26: warning: unnecessary parentheses in declaration of 'i' [-Wparentheses]
    3 | #define rep(i,n) for(int (i)=1;(i)<=n;++(i))
      |                          ^
foo.cc:31:2: note: in expansion of macro 'rep'
   31 |  rep(i,n){
      |  ^~~
foo.cc:36:15: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   36 |  for(int i=0;i<v.size();++i){
      |              ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 7ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 6ms 384.0 KiB
#6 Accepted 6ms 384.0 KiB
#7 Accepted 5ms 384.0 KiB
#8 Accepted 5ms 384.0 KiB
#9 Accepted 11ms 1.0 MiB
#10 Accepted 20ms 2.371 MiB

信息

递交者
类型
递交
题目
P1004 The LSZC Tokens
比赛
AOCode Rematch
语言
C++
递交时间
2022-08-04 15:15:51
评测时间
2022-08-04 15:15:52
评测机
分数
100
总耗时
71ms
峰值内存
2.371 MiB