Problem gcd
User zjaelynx
Submission Time 2023-05-17 17:26:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int calculateHCF(int, int, int)’:
gcd.cpp:5:22: error: expected primary-expression before ‘<’ token
5 | for (int i = 1; i =< a && i =< b; i++) {
| ^
gcd.cpp:5:32: error: expected primary-expression before ‘<’ token
5 | for (int i = 1; i =< a && i =< b; i++) {
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:14:30: error: too few arguments to function ‘int calculateHCF(int, int, int)’
14 | int hcf = calculateHCF(a, b);
| ^
gcd.cpp:4:5: note: declared here
4 | int calculateHCF(int a, int b, int hcf) {
| ^~~~~~~~~~~~