Home STD Contest Notification Clarification Problems Ranklist Status Print Sign Out

View Compilation Error

1_868_10078_2376.cpp: In function 'long long int gcd(long long int, long long int)':
1_868_10078_2376.cpp:7:13: error: 'y' was not declared in this scope
      return y?gcd(y,x%y):x;
             ^
1_868_10078_2376.cpp:7:21: error: 'x' was not declared in this scope
      return y?gcd(y,x%y):x;
                     ^


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-22 19:23:28, Gzip enabled