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_39663614_6172.cpp:11:1: error: 'deque' does not name a type
   11 | deque<int>q;
      | ^~~~~
0_0_39663614_6172.cpp: In function 'int main()':
0_0_39663614_6172.cpp:14:9: error: 'scanf' was not declared in this scope
   14 |         scanf("%lld",&t);
      |         ^~~~~
0_0_39663614_6172.cpp:16:17: error: 'q' was not declared in this scope
   16 |                 q.clear();
      |                 ^
0_0_39663614_6172.cpp:17:17: error: 'memset' was not declared in this scope
   17 |                 memset(dp,0,sizeof(dp));
      |                 ^~~~~~
0_0_39663614_6172.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | #define int long long
0_0_39663614_6172.cpp:22:17: error: 'sort' was not declared in this scope; did you mean 'short'?
   22 |                 sort(pre+1,pre+n+1,cmp);
      |                 ^~~~
      |                 short
0_0_39663614_6172.cpp:33:17: error: 'printf' was not declared in this scope
   33 |                 printf("Case %lld: %lld\n",Case,ans);
      |                 ^~~~~~
0_0_39663614_6172.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | #define int long long


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-11 04:15:48, Gzip enabled