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_39458498_24648.cpp:12:13: error: expected unqualified-id before '=' token
   12 | #define i64 = long long;
      |             ^
0_0_39458498_24648.cpp:14:11: note: in expansion of macro 'i64'
   14 | constexpr i64 inf = 1E18;
      |           ^~~
0_0_39458498_24648.cpp:14:15: error: 'inf' does not name a type; did you mean 'int'?
   14 | constexpr i64 inf = 1E18;
      |               ^~~
      |               int
0_0_39458498_24648.cpp: In function 'void solve()':
0_0_39458498_24648.cpp:12:20: error: template argument 1 is invalid
   12 | #define i64 = long long;
      |                    ^~~~
0_0_39458498_24648.cpp:20:17: note: in expansion of macro 'i64'
   20 |     std::vector<i64> dp(k + 1, inf);
      |                 ^~~
0_0_39458498_24648.cpp:12:20: error: template argument 2 is invalid
   12 | #define i64 = long long;
      |                    ^~~~
0_0_39458498_24648.cpp:20:17: note: in expansion of macro 'i64'
   20 |     std::vector<i64> dp(k + 1, inf);
      |                 ^~~
0_0_39458498_24648.cpp:20:20: error: expected primary-expression before '>' token
   20 |     std::vector<i64> dp(k + 1, inf);
      |                    ^
0_0_39458498_24648.cpp:20:32: error: 'inf' was not declared in this scope; did you mean 'sinf'?
   20 |     std::vector<i64> dp(k + 1, inf);
      |                                ^~~
      |                                sinf
0_0_39458498_24648.cpp:20:22: error: 'dp' was not declared in this scope
   20 |     std::vector<i64> dp(k + 1, inf);
      |                      ^~


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-09-20 18:48:18, Gzip enabled