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_39802808_14741.cpp:4:2: error: 'struck' does not name a type; did you mean 'struct'?
    4 |  struck N
      |  ^~~~~~
      |  struct
0_0_39802808_14741.cpp:8:2: error: 'Na' does not name a type
    8 |  Na[100];
      |  ^~
0_0_39802808_14741.cpp:12:12: error: 'N' was not declared in this scope
   12 |  int check(N n1,N n2)
      |            ^
0_0_39802808_14741.cpp:12:17: error: 'N' was not declared in this scope
   12 |  int check(N n1,N n2)
      |                 ^
0_0_39802808_14741.cpp:12:21: error: expression list treated as compound expression in initializer [-fpermissive]
   12 |  int check(N n1,N n2)
      |                     ^
0_0_39802808_14741.cpp: In function 'int main()':
0_0_39802808_14741.cpp:28:25: error: 'a' was not declared in this scope
   28 |                         a[++cnt] = {x,y,z};
      |                         ^
0_0_39802808_14741.cpp:36:42: error: 'a' was not declared in this scope
   36 |                                 if(check(a[i],a[j]))
      |                                          ^
0_0_39802808_14741.cpp:36:51: error: 'check' cannot be used as a function
   36 |                                 if(check(a[i],a[j]))
      |                                                   ^
0_0_39802808_14741.cpp:42:31: error: 'a' was not declared in this scope
   42 |                         dp[i]=a[i].h;
      |                               ^
0_0_39802808_14741.cpp:51:37: error: 'class std::queue<int>' has no member named 'fromt'; did you mean 'front'?
   51 |                         int cur = q.fromt();
      |                                     ^~~~~
      |                                     front
0_0_39802808_14741.cpp:55:59: error: 'a' was not declared in this scope
   55 |                                 dp[i] = max(dp[i],dp[cur]+a[i].h);
      |                                                           ^
0_0_39802808_14741.cpp:64:25: error: 'ana' was not declared in this scope; did you mean 'ans'?
   64 |                 cout << ana << endl;
      |                         ^~~
      |                         ans


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-22 07:20:22, Gzip enabled