gorgeous.cpp: In function 'void bfs(int, int, int)':
gorgeous.cpp:12:6: warning: unused variable 'tmpn' [-Wunused-variable]
int tmpn = node;
^~~~
gorgeous.cpp: In function 'int main()':
gorgeous.cpp:41:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &n);
~~~~~^~~~~~~~~~
gorgeous.cpp:42:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i = 0; i < n; i++) scanf("%d", &c[i]);
~~~~~^~~~~~~~~~~~~
gorgeous.cpp:43:31: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
for (i = 0; i < n; i++) scanf("%d", &d[i]);
~~~~~^~~~~~~~~~~~~