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_39095772_29681.cpp: In function 'int main()':
0_0_39095772_29681.cpp:45:9: error: 'scanf' was not declared in this scope; did you mean 'isnanf'?
   45 |         scanf("%d", &T);
      |         ^~~~~
      |         isnanf
0_0_39095772_29681.cpp:70:17: error: 'cin' was not declared in this scope
   70 |                 cin >> m;
      |                 ^~~
0_0_39095772_29681.cpp:2:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
    1 | #include <cstring>
  +++ |+#include <iostream>
    2 | using namespace std;
0_0_39095772_29681.cpp:75:25: error: 'printf' was not declared in this scope
   75 |                         printf("%d\n", query(l, r, x));
      |                         ^~~~~~
0_0_39095772_29681.cpp:2:1: note: 'printf' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
    1 | #include <cstring>
  +++ |+#include <cstdio>
    2 | using namespace std;


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-23 04:07:48, Gzip enabled