0_0_23965991_30536.cpp: In function 'int main()':
0_0_23965991_30536.cpp:5:27: error: 'scanf' was not declared in this scope
while(scanf("%d %d",&n,&m) == 2){
^
0_0_23965991_30536.cpp:18:29: error: 'printf' was not declared in this scope
printf("%d\n",last[i - 2]);
^
0_0_23965991_30536.cpp:20:32: error: 'printf' was not declared in this scope
printf("%d\n",last[temp - 1]);
^
|