Wrong Answer
/in/foo.cc: In function 'void johnson()':
/in/foo.cc:33:23: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
if(t[i].maid=1){
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:47:39: warning: operation on 'k' may be undefined [-Wsequence-point]
cin >> qmap[k].first >> qmap[k++].second;
~^~