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_38813643_14318.cpp:2:1: error: 'LL' does not name a type
    2 | LL dp[105][105][25][105], p[10] = {1, 1}, yu[25][105];
      | ^~
0_0_38813643_14318.cpp:2:41: error: expected unqualified-id before ',' token
    2 | LL dp[105][105][25][105], p[10] = {1, 1}, yu[25][105];
      |                                         ^
0_0_38813643_14318.cpp:2:54: error: expected constructor, destructor, or type conversion before ';' token
    2 | LL dp[105][105][25][105], p[10] = {1, 1}, yu[25][105];
      |                                                      ^
0_0_38813643_14318.cpp:3:1: error: 'LL' does not name a type
    3 | LL cal(int type, int num) {
      | ^~
0_0_38813643_14318.cpp: In function 'void konbi()':
0_0_38813643_14318.cpp:17:5: error: 'cin' was not declared in this scope
   17 |     cin >> n >> m >> r >> p[2];
      |     ^~~
0_0_38813643_14318.cpp:17:27: error: 'p' was not declared in this scope
   17 |     cin >> n >> m >> r >> p[2];
      |                           ^
0_0_38813643_14318.cpp:21:9: error: 'LL' was not declared in this scope
   21 |         LL sum = 0;
      |         ^~
0_0_38813643_14318.cpp:22:42: error: incompatible types in assignment of 'int' to 'int [105][25]'
   22 |         for (int i = 1; i <= n; i++) sum += v[a[i]];
      |                                      ~~~~^~~~~~~~~~
0_0_38813643_14318.cpp:23:9: error: 'cout' was not declared in this scope
   23 |         cout << sum << "\n";
      |         ^~~~
0_0_38813643_14318.cpp:34:21: error: 'dp' was not declared in this scope
   34 |                     dp[i][j][k][t] = -2e18;
      |                     ^~
0_0_38813643_14318.cpp:44:13: error: 'yu' was not declared in this scope
   44 |             yu[i][j] = cal(i, j);
      |             ^~
0_0_38813643_14318.cpp:44:24: error: 'cal' was not declared in this scope
   44 |             yu[i][j] = cal(i, j);
      |                        ^~~
0_0_38813643_14318.cpp:47:34: error: 'dp' was not declared in this scope
   47 |     for (int i = 1; i <= n; i++) dp[i][i][a[i]][1] = 0;
      |                                  ^~
0_0_38813643_14318.cpp:55:29: error: 'dp' was not declared in this scope
   55 |                         if (dp[i][mid][k1][t1] < -2e17) continue;
      |                             ^~
0_0_38813643_14318.cpp:58:33: error: 'LL' was not declared in this scope; did you mean 'L'?
   58 |                                 LL sum = dp[i][mid][k1][t1] + dp[mid + 1][j][k2][t2];
      |                                 ^~
      |                                 L
0_0_38813643_14318.cpp:60:37: error: 'dp' was not declared in this scope
   60 |                                     dp[i][j][k1][t1 + t2] = max(dp[i][j][k1][t1 + t2], sum);
      |                                     ^~
0_0_38813643_14318.cpp:60:61: error: 'max' was not declared in this scope
   60 |                                     dp[i][j][k1][t1 + t2] = max(dp[i][j][k1][t1 + t2], sum);
      |                                                             ^~~
0_0_38813643_14318.cpp:63:37: error: 'dp' was not declared in this scope
   63 |                                     dp[i][j][k1][t1] = max(dp[i][j][k1][t1], sum + yu[k2][t2]);
      |                                     ^~
0_0_38813643_14318.cpp:63:84: error: 'yu' was not declared in this scope
   63 |                                     dp[i][j][k1][t1] = max(dp[i][j][k1][t1], sum + yu[k2][t2]);
      |                                                                                    ^~
0_0_38813643_14318.cpp:63:56: error: 'max' was not declared in this scope
   63 |                                     dp[i][j][k1][t1] = max(dp[i][j][k1][t1], sum + yu[k2][t2]);
      |                                                        ^~~
0_0_38813643_14318.cpp:73:5: error: 'LL' was not declared in this scope
   73 |     LL res = 0;
      |     ^~
0_0_38813643_14318.cpp:76:13: error: 'res' was not declared in this scope
   76 |             res = max(res, dp[1][n][i][j] + yu[i][j]);
      |             ^~~
0_0_38813643_14318.cpp:76:28: error: 'dp' was not declared in this scope
   76 |             res = max(res, dp[1][n][i][j] + yu[i][j]);
      |                            ^~
0_0_38813643_14318.cpp:76:45: error: 'yu' was not declared in this scope
   76 |             res = max(res, dp[1][n][i][j] + yu[i][j]);
      |                                             ^~
0_0_38813643_14318.cpp:76:19: error: 'max' was not declared in this scope
   76 |             res = max(res, dp[1][n][i][j] + yu[i][j]);
      |                   ^~~
0_0_38813643_14318.cpp:79:5: error: 'cout' was not declared in this scope
   79 |     cout << res << " \n";
      |     ^~~~
0_0_38813643_14318.cpp:79:13: error: 'res' was not declared in this scope
   79 |     cout << res << " \n";
      |             ^~~
0_0_38813643_14318.cpp: In function 'int main()':
0_0_38813643_14318.cpp:82:5: error: 'ios' has not been declared
   82 |     ios::sync_with_stdio(0);
      |     ^~~
0_0_38813643_14318.cpp:83:5: error: 'cin' was not declared in this scope
   83 |     cin.tie(0);
      |     ^~~


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 15:36:18, Gzip enabled