designated_cities.cpp: In function 'int main()':
designated_cities.cpp:24:18: warning: unused variable 'j' [-Wunused-variable]
long long n, i, j, allsum = 0; scanf("%lld", &n);
^
designated_cities.cpp:33:25: warning: variable 'root' set but not used [-Wunused-but-set-variable]
long long rootSum = 0, root = 1;
^~~~
designated_cities.cpp:23:9: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
freopen("input.txt", "r", stdin);
~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
designated_cities.cpp:24:38: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
long long n, i, j, allsum = 0; scanf("%lld", &n);
~~~~~^~~~~~~~~~~~
designated_cities.cpp:26:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
long long s, e, a, b; scanf("%lld%lld%lld%lld", &s, &e, &a, &b);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
designated_cities.cpp:36:23: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
long long q, x; scanf("%lld %lld", &q, &x);
~~~~~^~~~~~~~~~~~~~~~~~~~~