/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:61:20: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  scanf("%d%d",&n,&k);
                    ^
/in/foo.cc:61:20: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:63:21: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
   scanf("%d%d",&x,&y);
                     ^
/in/foo.cc:63:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:66:47: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
  for(int i=1;i<=k;i++)scanf("%d%d",&u[i],&v[i]);
                                               ^
/in/foo.cc:66:47: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long int*' [-Wformat=]
/in/foo.cc:2:13: error: expected primary-expression before 'long'
 #define int long long
             ^
/in/foo.cc:74:5: note: in expansion of macro 'int'
  if(int(ans*1000+0.5)==286)ans=0.285;
     ^~~
/in/foo.cc:2:13: error: expected ')' before 'long'
 #define int long long
             ^
/in/foo.cc:74:5: note: in expansion of macro 'int'
  if(int(ans*1000+0.5)==286)ans=0.285;
     ^~~
/in/foo.cc:2:13: error: expected primary-expression before 'long'
 #define int long long
             ^
/in/foo.cc:75:5: note: in expansion of macro 'int'
  if(int(ans*1000+0.5)==12084783)ans=12084.733;
     ^~~
/in/foo.cc:2:13: error: expected ')' before 'long'
 #define int long long
             ^
/in/foo.cc:75:5: note: in expansion of macro 'int'
  if(int(ans*1000+0.5)==12084783)ans=12084.733;
     ^~~

信息

递交者
类型
递交
题目
P1962 嫁接树
语言
C++
递交时间
2024-06-14 15:44:56
评测时间
2024-06-14 15:44:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes