/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int gcd(int, int)':
foo.cc:27:11: error: '__gcd' was not declared in this scope
     int p=__gcd(a,b);
           ^~~~~
foo.cc:27:11: note: suggested alternative:
In file included from /usr/include/c++/7/algorithm:62:0,
                 from foo.cc:14:
/usr/include/c++/7/bits/stl_algo.h:1232:5: note:   'std::__gcd'
     __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
     ^~~~~
foo.cc:27:9: warning: unused variable 'p' [-Wunused-variable]
     int p=__gcd(a,b);
         ^
foo.cc: In function 'int main()':
foo.cc:39:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&x0,&y0);
     ~~~~~^~~~~~~~~~~~~~~~
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1131 最小公倍数和最大公约数问题
语言
C++
递交时间
2021-04-03 16:10:17
评测时间
2021-04-03 16:10:17
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes