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_39729156_8072.cpp:14:33: error: expected ')' before ';' token
   14 | #define db cout<< "debug" <<endl;
      |                                 ^
0_0_39729156_8072.cpp:39:10: note: in expansion of macro 'db'
   39 | bool isz(db x) {return x==round(x);}
      |          ^~
0_0_39729156_8072.cpp:39:9: note: to match this '('
   39 | bool isz(db x) {return x==round(x);}
      |         ^
0_0_39729156_8072.cpp:39:13: error: 'x' does not name a type
   39 | bool isz(db x) {return x==round(x);}
      |             ^
0_0_39729156_8072.cpp: In function 'void solve(long long int, long long int)':
0_0_39729156_8072.cpp:52:12: error: 'isz' cannot be used as a function
   52 |     if (isz(x) && isz(y)) cout << x << " " << y << "\n";
      |         ~~~^~~
0_0_39729156_8072.cpp:52:22: error: 'isz' cannot be used as a function
   52 |     if (isz(x) && isz(y)) cout << x << " " << y << "\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-29 15:15:50, Gzip enabled