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_17912177_1104.cpp:6:9: error: 'int64' does not name a type
 typedef int64 LL;
         ^
0_0_17912177_1104.cpp:7:1: error: 'LL' does not name a type
 LL a[400005],sum[400005],f[400005],q[400005];
 ^
0_0_17912177_1104.cpp:9:1: error: 'LL' does not name a type
 LL get(int j)
 ^
0_0_17912177_1104.cpp: In function 'int main()':
0_0_17912177_1104.cpp:17:16: error: 'f' was not declared in this scope
         memset(f,0x3f,sizeof(f));
                ^
0_0_17912177_1104.cpp:18:52: error: 'a' was not declared in this scope
         for (int i = 1;i <= n;i ++) scanf("%I64d",&a[i]);
                                                    ^
0_0_17912177_1104.cpp:19:14: error: 'a' was not declared in this scope
         sort(a + 1,a + n + 1);
              ^
0_0_17912177_1104.cpp:20:9: error: 'sum' was not declared in this scope
         sum[0] = 0;
         ^
0_0_17912177_1104.cpp:33:9: error: 'q' was not declared in this scope
         q[t] = 1;
         ^
0_0_17912177_1104.cpp:41:39: error: no matching function for call to 'get(int&)'
                 while (h < t && (get(j) - get(q[t])) * (a[q[t]] - a[q[t - 1]]) <= (get(q[t]) - get(q[t - 1])) * (a[j] - a[q[t]]))
                                       ^
0_0_17912177_1104.cpp:41:39: note: candidates are:
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from 0_0_17912177_1104.cpp:4:
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_17912177_1104.cpp:41:39: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
                 while (h < t && (get(j) - get(q[t])) * (a[q[t]] - a[q[t - 1]]) <= (get(q[t]) - get(q[t - 1])) * (a[j] - a[q[t]]))
                                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from 0_0_17912177_1104.cpp:4:
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_17912177_1104.cpp:41:39: note:   mismatched types 'std::pair<_Tp1, _Tp2>' and 'int'
                 while (h < t && (get(j) - get(q[t])) * (a[q[t]] - a[q[t - 1]]) <= (get(q[t]) - get(q[t - 1])) * (a[j] - a[q[t]]))
                                       ^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:60:0,
                 from 0_0_17912177_1104.cpp:4:
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_17912177_1104.cpp:41:39: note:   mismatched types 'const std::pair<_Tp1, _Tp2>' and 'int'
                 while (h < t && (get(j) - get(q[t])) * (a[q[t]] - a[q[t - 1]]) <= (get(q[t]) - get(q[t - 1])) * (a[j] - a[q[t]]))
                                       ^


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-12-02 12:04:02, Gzip enabled