virus.cpp:12:1: error: 'queue' does not name a type
queue<pii> Q;
^~~~~
virus.cpp: In function 'int main()':
virus.cpp:17:5: error: 'scanf' was not declared in this scope
scanf("%d %d %d",&M,&R,&C);
^~~~~
virus.cpp:31:30: error: 'max' was not declared in this scope
if (yes) tt[i] = max(tt[i],j-p);
^~~
virus.cpp:31:30: note: suggested alternative: 'main'
if (yes) tt[i] = max(tt[i],j-p);
^~~
main
virus.cpp:45:41: error: 'Q' was not declared in this scope
visited[i][j] = ++t,Q.push(mp(i,j));
^
virus.cpp:45:48: error: 'mp' was not declared in this scope
visited[i][j] = ++t,Q.push(mp(i,j));
^~
virus.cpp:45:48: note: suggested alternative: 'my'
visited[i][j] = ++t,Q.push(mp(i,j));
^~
my
virus.cpp:51:51: error: 'y' was not declared in this scope
int xx = x+dx[k],yy = y+dy[k];
^
virus.cpp:51:51: note: suggested alternative: 'yy'
int xx = x+dx[k],yy = y+dy[k];
^
yy
virus.cpp:81:5: error: 'printf' was not declared in this scope
printf("%d\n%d\n",best,num);
^~~~~~
virus.cpp:81:5: note: suggested alternative: 'parent'
printf("%d\n%d\n",best,num);
^~~~~~
parent