记录详情

Runtime Error

/in/foo.cc: In function 'void Euler()':
/in/foo.cc:2:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,l,r) for(int i=(l);i<=(r);i++)
                                   ^
/in/foo.cc:8:2: note: in expansion of macro 'rep'
  rep(i,2,n){
  ^~~
/in/foo.cc:2:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,l,r) for(int i=(l);i<=(r);i++)
                                   ^
/in/foo.cc:14:3: note: in expansion of macro 'rep'
   rep(j,1,len){
   ^~~
/in/foo.cc: In function 'void split(int)':
/in/foo.cc:2:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,l,r) for(int i=(l);i<=(r);i++)
                                   ^
/in/foo.cc:21:2: note: in expansion of macro 'rep'
  rep(i,firpos[a],len){
  ^~~
/in/foo.cc:22:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(prime[i]*prime[i]>a) break;//当大于等于根号n的时候就退出,复杂度才是根号n的。 
      ~~~~~~~~~~~~~~~~~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:2:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,l,r) for(int i=(l);i<=(r);i++)
                                   ^
/in/foo.cc:35:2: note: in expansion of macro 'rep'
  rep(i,2,n) split(i);
  ^~~
/in/foo.cc:2:35: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
 #define rep(i,l,r) for(int i=(l);i<=(r);i++)
                                   ^
/in/foo.cc:37:2: note: in expansion of macro 'rep'
  rep(i,1,n) ans=(ans*(cnt[i]*2+1))%mod;
  ^~~
# 状态 耗时 内存占用
#1 Runtime Error 3ms 316.0 KiB
#2 Runtime Error 3ms 352.0 KiB
#3 Runtime Error 3ms 308.0 KiB
#4 Runtime Error 3ms 472.0 KiB
#5 Runtime Error 6ms 1.598 MiB
#6 Runtime Error 13ms 1.969 MiB
#7 Runtime Error 12ms 5.301 MiB
#8 Runtime Error 28ms 12.824 MiB
#9 Runtime Error 24ms 16.09 MiB

信息

递交者
类型
递交
题目
樱花
题目数据
下载
语言
C++
递交时间
2018-10-23 18:44:09
评测时间
2018-10-23 18:44:09
评测机
分数
0
总耗时
99ms
峰值内存
16.09 MiB