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_37751132_1900.cpp:28:37: error: macro "read" requires 2 arguments, but only 1 given
 template <typename T> void read(T &t) {
                                     ^
0_0_37751132_1900.cpp:41:25: error: macro "read" requires 2 arguments, but only 1 given
  rep (i, 1, n) read(a[i]);
                         ^
0_0_37751132_1900.cpp:42:25: error: macro "read" requires 2 arguments, but only 1 given
  rep (i, 1, n) read(b[i]);
                         ^
0_0_37751132_1900.cpp:43:29: error: macro "read" requires 2 arguments, but only 1 given
  rep (i, 1, 2 * n) read(c[i]);
                             ^
0_0_37751132_1900.cpp:28:28: error: variable or field 'read' declared void
 template <typename T> void read(T &t) {
                            ^
0_0_37751132_1900.cpp:29:2: error: 't' was not declared in this scope
  t=0; char ch=getchar(); int f=1;
  ^
0_0_37751132_1900.cpp:29:5: error: expected '}' before ';' token
  t=0; char ch=getchar(); int f=1;
     ^
0_0_37751132_1900.cpp:29:30: error: conflicting declaration 'long long int f'
  t=0; char ch=getchar(); int f=1;
                              ^
0_0_37751132_1900.cpp:27:5: note: previous declaration as 'long long int f [200010]'
 int f[N];
     ^
0_0_37751132_1900.cpp:30:2: error: expected unqualified-id before 'while'
  while (ch<'0'||ch>'9') { if (ch=='-') f=-1; ch=getchar(); }
  ^
0_0_37751132_1900.cpp:31:2: error: expected unqualified-id before 'do'
  do { (t*=10)+=ch-'0'; ch=getchar(); } while ('0'<=ch&&ch<='9'); t*=f;
  ^
0_0_37751132_1900.cpp:31:40: error: expected unqualified-id before 'while'
  do { (t*=10)+=ch-'0'; ch=getchar(); } while ('0'<=ch&&ch<='9'); t*=f;
                                        ^
0_0_37751132_1900.cpp:31:66: error: 't' does not name a type
  do { (t*=10)+=ch-'0'; ch=getchar(); } while ('0'<=ch&&ch<='9'); t*=f;
                                                                  ^
0_0_37751132_1900.cpp:32:1: error: expected declaration before '}' token
 }
 ^


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-07-02 16:25:38, Gzip enabled