gogopher.cpp: In function 'int main()':
gogopher.cpp:7:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (scanf("%d", &A), i = 2; dig < A; i += 3, dig += 9) {
~~~~~~~~~~~~~~~^~~~~~~
gogopher.cpp:11:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
int i_, j_; scanf("%d%d",&i_,&j_);
~~~~~^~~~~~~~~~~~~~~~
gogopher.cpp:5:22: warning: 'T' is used uninitialized in this function [-Wuninitialized]
for (int tc = 1; tc <= T; ++tc) {
~~~^~~~