Problem gcd
User DuckyKayden
Submission Time 2025-08-16 18:35:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int32_t main()’:
gcd.cpp:12:10: error: no match for call to ‘(std::vector<long long int>) (long long int&, long long int&)’
12 | gcb(a, b) = gcb(b, a mod b);
| ^
gcd.cpp:12:22: error: expected ‘)’ before ‘mod’
12 | gcb(a, b) = gcb(b, a mod b);
| ~ ^~~~
| )
gcd.cpp:12:28: error: no match for call to ‘(std::vector<long long int>) (long long int&, long long int&)’
12 | gcb(a, b) = gcb(b, a mod b);
| ^
gcd.cpp:13:10: error: no match for call to ‘(std::vector<long long int>) (long long int&, int)’
13 | gcb(a, 0) = a;
| ^
gcd.cpp:15:7: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
15 | cout << gcb;
| ~~~~ ^~ ~~~
| | |
| | st