#include #include int main(){ FILE *text; text=fopen("D:\\Dados\\Downloads\\dayonefile.txt","r"); if(text==NULL){ printf("fuck"); }//currently pointing to 0// char current='0'; int no_of_digits=0; int total_digits; int no_of_big_elf=0; int no_of_elf=0; int elf_sum=0; int big_elf_sum=0; while(!feof(text)){ current = fgetc(text); //currently poiting to next till \n// no_of_digits++; if(current=='\n'){ total_digits=no_of_digits; current=fseek(text,no_of_digits,SEEK_CUR); while(current!='\n'){ elf_sum+=current*pow(1,total_digits-1); total_digits--; printf("%s",current); current=fgetc(text); } current=fseek(text,+1,SEEK_CUR); if(current=='\n'){ no_of_elf++; if(big_elf_sum