#include #include using namespace std; struct student { long f; int t; int s; }; int main() { int n; int m; ifstream fin("exam.in"); fin>>n>>m; int i, c, flag= 0; long f1, s1; student a[513]; for (i=0; i>a[i].f>>a[i].t; a[i].s = 0;} int j=0; for (i=0; i>f1>>s1; c=0; while (flag == 0 && c119) fout<