/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:21:17: error: 'greater' was not declared in this scope
  sort(a+1,a+n+1,greater<int>()); 
                 ^~~~~~~
/in/foo.cc:21:25: error: expected primary-expression before 'int'
  sort(a+1,a+n+1,greater<int>()); 
                         ^~~
/in/foo.cc:3:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (L+R>>1)
            ~^~
/in/foo.cc:25:12: note: in expansion of macro 'M'
   if(check(M))
            ^
/in/foo.cc:3:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (L+R>>1)
            ~^~
/in/foo.cc:26:6: note: in expansion of macro 'M'
    L=M;
      ^
/in/foo.cc:3:13: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
 #define M (L+R>>1)
            ~^~
/in/foo.cc:28:6: note: in expansion of macro 'M'
    R=M-1;
      ^

信息

递交者
类型
递交
题目
P1988 自行车比赛
语言
C++
递交时间
2017-07-06 17:58:39
评测时间
2017-07-06 17:58:39
评测机
分数
0
总耗时
114ms
峰值内存
14.355 MiB