/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:2:33: error: expected ')' before ':' token
 #define min(a,b) (((a)>(b))?((b):(a)))
                                 ^
/in/foo.cc:17:7: note: in expansion of macro 'min'
   ans=min(ans,min(in[i],out[i]));
       ^~~
/in/foo.cc:17:15: note: in expansion of macro 'min'
   ans=min(ans,min(in[i],out[i]));
               ^~~
/in/foo.cc:17:33: error: expected ':' before ';' token
   ans=min(ans,min(in[i],out[i]));
                                 ^
/in/foo.cc:17:33: error: expected primary-expression before ';' token
/in/foo.cc:17:33: error: expected ')' before ';' token
/in/foo.cc:17:33: error: expected ')' before ';' token
/in/foo.cc:17:33: error: expected ')' before ';' token
/in/foo.cc:17:33: error: expected ')' before ';' token
/in/foo.cc:2:33: error: expected ')' before ':' token
 #define min(a,b) (((a)>(b))?((b):(a)))
                                 ^
/in/foo.cc:18:14: note: in expansion of macro 'min'
  printf("%d",min(n,ans+k));
              ^~~
/in/foo.cc:18:27: error: expected ':' before ';' token
  printf("%d",min(n,ans+k));
                           ^
/in/foo.cc:18:27: error: expected primary-expression before ';' token
/in/foo.cc:18:27: error: expected ')' before ';' token

信息

递交者
类型
递交
题目
P1521 跳舞
语言
C++
递交时间
2018-03-20 10:02:12
评测时间
2018-03-20 10:02:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes