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_38740471_16277.cpp: In function 'void Solution::Input()':
0_0_38740471_16277.cpp:44:14: error: 'ein' was not declared in this scope; did you mean 'IO::ein'?
   44 | # define cin ein
      |              ^~~
0_0_38740471_16277.cpp:48:23: note: in expansion of macro 'cin'
   48 | inline void Input() { cin >> n; for (int i = 1, u, v; i <= n; ++i) { cin >> u >> v, G[v].push_back(array<int, 2> {u, i << 1}); if (u != v) G[u].push_back(array<int, 2> {v, i << 1 | 1}); } }
      |                       ^~~
0_0_38740471_16277.cpp:22:3: note: 'IO::ein' declared here
   22 | } ein(stdin);
      |   ^~~
0_0_38740471_16277.cpp: In function 'void Solution::solve()':
0_0_38740471_16277.cpp:44:14: error: 'ein' was not declared in this scope; did you mean 'IO::ein'?
   44 | # define cin ein
      |              ^~~
0_0_38740471_16277.cpp:71:54: note: in expansion of macro 'cin'
   71 | inline void solve () { ios_base::sync_with_stdio(0), cin.tie(nullptr), cout.nullptr(nullptr); Init(), Input(), work(); }
      |                                                      ^~~
0_0_38740471_16277.cpp:22:3: note: 'IO::ein' declared here
   22 | } ein(stdin);
      |   ^~~
0_0_38740471_16277.cpp:71:77: error: expected unqualified-id before 'nullptr'
   71 | inline void solve () { ios_base::sync_with_stdio(0), cin.tie(nullptr), cout.nullptr(nullptr); Init(), Input(), work(); }
      |                                                                             ^~~~~~~


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:32:38, Gzip enabled