divide.cpp:18:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
divide.cpp: In function 'int main()':
divide.cpp:32:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j = 0;j < vec.size(); j++){
~~^~~~~~~~~~~~
divide.cpp:21:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
~~~~~^~~~~~~~~~~~
divide.cpp:23:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld%lld", &x[i], &g[i], &c[i]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~