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_39299503_18855.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
0_0_39299503_18855.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
0_0_39299503_18855.c: In function 'main':
0_0_39299503_18855.c:7:5: error: 'cin' undeclared (first use in this function)
    7 |     cin.tie(nullptr)->sync_with_stdio(false);
      |     ^~~
0_0_39299503_18855.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
0_0_39299503_18855.c:7:13: error: 'nullptr' undeclared (first use in this function); did you mean 'nullptr_t'?
    7 |     cin.tie(nullptr)->sync_with_stdio(false);
      |             ^~~~~~~
      |             nullptr_t
0_0_39299503_18855.c:7:39: error: 'false' undeclared (first use in this function)
    7 |     cin.tie(nullptr)->sync_with_stdio(false);
      |                                       ^~~~~
0_0_39299503_18855.c:1:1: note: 'false' is defined in header '<stdbool.h>'; did you forget to '#include <stdbool.h>'?
  +++ |+#include <stdbool.h>
    1 | 
0_0_39299503_18855.c:11:22: error: 'cout' undeclared (first use in this function)
   11 |         if (cnt & 1) cout << 1 << '\n';
      |                      ^~~~


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 06:13:48, Gzip enabled