pilot.cpp: In function 'int main()':
pilot.cpp:54:24: error: 'uf' was not declared in this scope
if(ch[j+1])uf.mergepar(j, j+1);
^~
pilot.cpp:54:24: note: suggested alternative: 'ub'
if(ch[j+1])uf.mergepar(j, j+1);
^~
ub
pilot.cpp:55:24: error: 'uf' was not declared in this scope
if(ch[j-1])uf.mergepar(j-1, j);
^~
pilot.cpp:55:24: note: suggested alternative: 'ub'
if(ch[j-1])uf.mergepar(j-1, j);
^~
ub
pilot.cpp:42:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &q);
~~~~~^~~~~~~~~~~~~~~~~
pilot.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~
pilot.cpp:62:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a);
~~~~~^~~~~~~~~~