/ Vijos /

记录详情

Compile Error

/in/foo.cc:2:13: error: "<<" may not appear in macro parameter list
 #define lx(x<<1)
             ^~
/in/foo.cc:3:13: error: "<<" may not appear in macro parameter list
 #define rx(x<<1|1) 
             ^~
/in/foo.cc:4:13: error: ">>" may not appear in macro parameter list
 #define fa(x>>1);
             ^~
/in/foo.cc: In function 'void find1(int, int)':
/in/foo.cc:11:8: error: 'fa' was not declared in this scope
   if(w[fa]>w[x])k=1;
        ^~
/in/foo.cc:12:8: error: 'fa' was not declared in this scope
   if(w[fa]<w[x])k=2;
        ^~
/in/foo.cc:15:8: error: 'fa' was not declared in this scope
   if(w[fa]<w[x]){
        ^~
/in/foo.cc:16:4: error: 'l' was not declared in this scope
    l=1;
    ^
/in/foo.cc:20:13: error: 'fa' was not declared in this scope
  if(k==2&&w[fa]>w[x]){
             ^~
/in/foo.cc:21:2: error: 'l' was not declared in this scope
  l=1;
  ^
/in/foo.cc:24:6: error: 'l' was not declared in this scope
  if(!l){
      ^
/in/foo.cc:25:9: error: 'lx' was not declared in this scope
   find1(lx,k);
         ^~
/in/foo.cc:26:9: error: 'rx' was not declared in this scope
   find1(rx,k);
         ^~
/in/foo.cc:9:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j;
      ^
/in/foo.cc:9:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j;
        ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:41:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
      scanf("%d",n);
                  ^
/in/foo.cc:42:29: error: expected primary-expression before ')' token
   if(n==1)printf("Case #%d",)
                             ^
/in/foo.cc:37:6: warning: unused variable 'i' [-Wunused-variable]
  int i,j,l,r,f,o;
      ^
/in/foo.cc:37:8: warning: unused variable 'j' [-Wunused-variable]
  int i,j,l,r,f,o;
        ^
/in/foo.cc:37:10: warning: unused variable 'l' [-Wunused-variable]
  int i,j,l,r,f,o;
          ^
/in/foo.cc:37:12: warning: unused variable 'r' [-Wunused-variable]
  int i,j,l,r,f,o;
            ^
/in/foo.cc:37:14: warning: unused variable 'f' [-Wunused-variable]
  int i,j,l,r,f,o;
              ^

信息

递交者
类型
递交
题目
P1897 学姐吃牛排
语言
C++
递交时间
2019-08-03 21:06:04
评测时间
2019-08-03 21:06:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes