F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_33538099_1436.cpp:11:2: error: invalid preprocessing directive #defien
 #defien ld long double
  ^
0_0_33538099_1436.cpp:14:7: error: 'ld' does not name a type
 const ld esp=1e-20;
       ^
0_0_33538099_1436.cpp:17:2: error: 'ld' does not name a type
  ld k,d; //k为该机器人奔跑曲线的斜率,d为初始位置 
  ^
0_0_33538099_1436.cpp: In function 'bool cmp(node, node)':
0_0_33538099_1436.cpp:22:8: error: 'struct node' has no member named 'k'
  if(t1.k!=t2.k) return t1.k>t2.k;
        ^
0_0_33538099_1436.cpp:22:14: error: 'struct node' has no member named 'k'
  if(t1.k!=t2.k) return t1.k>t2.k;
              ^
0_0_33538099_1436.cpp:22:27: error: 'struct node' has no member named 'k'
  if(t1.k!=t2.k) return t1.k>t2.k;
                           ^
0_0_33538099_1436.cpp:22:32: error: 'struct node' has no member named 'k'
  if(t1.k!=t2.k) return t1.k>t2.k;
                                ^
0_0_33538099_1436.cpp:23:17: error: 'struct node' has no member named 'd'
  else return t1.d>t2.d;
                 ^
0_0_33538099_1436.cpp:23:22: error: 'struct node' has no member named 'd'
  else return t1.d>t2.d;
                      ^
0_0_33538099_1436.cpp: At global scope:
0_0_33538099_1436.cpp:25:1: error: 'ld' does not name a type
 ld get(int x,int y)//计算两条直线交点的横坐标 
 ^
0_0_33538099_1436.cpp: In function 'int main()':
0_0_33538099_1436.cpp:49:13: error: 'struct node' has no member named 'k'
     li[cnt].k=k,li[cnt].b=b;
             ^
0_0_33538099_1436.cpp:49:25: error: 'struct node' has no member named 'b'
     li[cnt].k=k,li[cnt].b=b;
                         ^
0_0_33538099_1436.cpp:55:9: error: 'struct node' has no member named 'k'
   li[n].k=-1,li[n].b=0,li[n].w=1;
         ^
0_0_33538099_1436.cpp:55:20: error: 'struct node' has no member named 'b'
   li[n].k=-1,li[n].b=0,li[n].w=1;
                    ^
0_0_33538099_1436.cpp:60:13: error: 'struct node' has no member named 'k'
    if(li[i].k==li[i-1].k) continue;
             ^
0_0_33538099_1436.cpp:60:24: error: 'struct node' has no member named 'k'
    if(li[i].k==li[i-1].k) continue;
                        ^
0_0_33538099_1436.cpp:61:43: error: no matching function for call to 'get(long long int&, long long int&)'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
0_0_33538099_1436.cpp:61:43: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)
     get(std::pair<_Tp1, _Tp2>& __in) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:143:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type&& std::get(std::pair<_Tp1, _Tp2>&&)
     get(std::pair<_Tp1, _Tp2>&& __in) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:148:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:64,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note: template<long long unsigned int _Int, class _Tp1, class _Tp2> constexpr const typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(const std::pair<_Tp1, _Tp2>&)
     get(const std::pair<_Tp1, _Tp2>& __in) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/utility:153:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'const std::pair<_Tp1, _Tp2>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp& std::get(std::array<_Tp, _Nm>&)
     get(array<_Tp, _Nm>& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:272:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'std::array<_Tp, _Nm>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr _Tp&& std::get(std::array<_Tp, _Nm>&&)
     get(array<_Tp, _Nm>&& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:281:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'std::array<_Tp, _Nm>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:39:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note: template<long long unsigned int _Int, class _Tp, long long unsigned int _Nm> constexpr const _Tp& std::get(const std::array<_Tp, _Nm>&)
     get(const array<_Tp, _Nm>& __arr) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/array:289:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'const std::array<_Tp, _Nm>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note: template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(std::tuple<_Elements ...>&)
     get(tuple<_Elements...>& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:756:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'std::tuple<_Elements ...>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-1],i)<=esp)top--;
                                           ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:55:0,
                 from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70,
                 from 0_0_33538099_1436.cpp:8:
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note: template<long long unsigned int __i, class ... _Elements> constexpr typename std::__add_c_ref<typename std::tuple_element<__i, std::tuple<_Elements ...> >::type>::type std::get(const std::tuple<_Elements ...>&)
     get(const tuple<_Elements...>& __t) noexcept
     ^
GCC4.9.2/x86_64-w64-mingw32/include/c++/tuple:764:5: note:   template argument deduction/substitution failed:
0_0_33538099_1436.cpp:61:43: note:   mismatched types 'const std::tuple<_Elements ...>' and 'long long int'
    while(top>=3&&get(sta[top-1],sta[top-2])-get(sta[top-


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 07:35:45, Gzip enabled