#include using namespace std; int main(){ FILE *fp = fopen(__FILE__, "r"); if(!fp){ volatile bool x = true; while(x); } for(int i = 0; !feof(fp); ++i){ int a = fgetc(fp); int b = getchar(); if(a != b){ printf("%d\n\"%c\"\n\"%c\"\n", i, a, b); break; } } }