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_39461817_19810.cpp: In function 'void SA()':
0_0_39461817_19810.cpp:10:9: error: 'memset' was not declared in this scope
   10 |         memset(fir, 0, n + 3 << 2);
      |         ^~~~~~
0_0_39461817_19810.cpp:1:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
  +++ |+#include <cstring>
    1 | typedef long long LL;
0_0_39461817_19810.cpp:39:25: error: 'memcpy' was not declared in this scope
   39 |                 m = sz, memcpy(fir, sec, n + 2 << 2);
      |                         ^~~~~~
0_0_39461817_19810.cpp:39:25: note: 'memcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39461817_19810.cpp: In function 'void buildST()':
0_0_39461817_19810.cpp:59:39: error: 'min' was not declared in this scope
   59 |                         f[k + 1][i] = min(f[k][i], f[k][i + (1 << k)]);
      |                                       ^~~
0_0_39461817_19810.cpp: In function 'int qry(int, int)':
0_0_39461817_19810.cpp:66:16: error: 'min' was not declared in this scope
   66 |         return min(f[k][l], f[k][r - (1 << k) + 1]);
      |                ^~~
0_0_39461817_19810.cpp: In function 'void build()':
0_0_39461817_19810.cpp:104:9: error: 'memset' was not declared in this scope
  104 |         memset(rt, 0, n + 3 << 2);
      |         ^~~~~~
0_0_39461817_19810.cpp:104:9: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39461817_19810.cpp: In function 'int main()':
0_0_39461817_19810.cpp:165:14: error: 'scanf' was not declared in this scope
  165 |         for (scanf("%d", &task); task--; ) {
      |              ^~~~~
0_0_39461817_19810.cpp:173:25: error: 'printf' was not declared in this scope
  173 |                         printf("%d\n", Query(x, y, k));
      |                         ^~~~~~
0_0_39461817_19810.cpp:1:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
  +++ |+#include <cstdio>
    1 | typedef long long LL;


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 21:31:26, Gzip enabled