game.cpp: In function 'long long int query(long long int, long long int, long long int)':
game.cpp:18:12: error: 'gcd2' was not declared in this scope
18 | return gcd2(query(2*i, l, mid), query(2*i+1, mid+1, r));
| ^~~~
game.cpp: In function 'void upd(long long int, long long int, long long int)':
game.cpp:32:18: error: 'gcd2' was not declared in this scope
32 | t[line][i] = gcd2(t[line][2*i], t[line][2*i+1]);
| ^~~~
game.cpp: In function 'long long int calculate(long long int, long long int, long long int, long long int)':
game.cpp:54:15: error: 'gcd2' was not declared in this scope
54 | ans = gcd2(ans, query(1, 1, c));
| ^~~~