/ Vijos /

记录详情

Accepted

foo.cc:28: warning: "assert" redefined
   28 | #define assert(...) 917
      | 
In file included from /usr/include/c++/9/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
                 from foo.cc:2:
/usr/include/assert.h:92: note: this is the location of the previous definition
   92 | #  define assert(expr)       \
      | 
foo.cc: In function 'void solve()':
foo.cc:27:20: warning: statement has no effect [-Wunused-value]
   27 | #define debug(...) 917
      |                    ^~~
foo.cc:83:9: note: in expansion of macro 'debug'
   83 |         debug(now);
      |         ^~~~~
foo.cc: In function 'int main()':
foo.cc:95:2: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   95 |  for(int i=1;i<=ttt;++i)solve();return 0;
      |  ^~~
foo.cc:95:33: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   95 |  for(int i=1;i<=ttt;++i)solve();return 0;
      |                                 ^~~~~~
foo.cc: In instantiation of 'Z<P> Z<P>::inv() const [with int P = 998244353]':
foo.cc:61:81:   required from here
foo.cc:28:21: warning: statement has no effect [-Wunused-value]
   28 | #define assert(...) 917
      |                     ^~~
foo.cc:54:19: note: in expansion of macro 'assert'
   54 |     Z inv() const{assert(x!=0);return (*this)^(P-2);}
      |                   ^~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 8ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 3ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 6ms 384.0 KiB
#9 Accepted 36ms 384.0 KiB
#10 Accepted 38ms 384.0 KiB

信息

递交者
类型
递交
题目
P1629 八
语言
C++
递交时间
2022-03-10 17:45:34
评测时间
2022-03-10 17:45:34
评测机
分数
100
总耗时
106ms
峰值内存
384.0 KiB