Language: C

#include<stdio.h>                                                                                                                                                                                                                               int main(void){                                                                                                                   int A;                                                                                                                  int B;                                                                                                                  scanf("%d%d", &A, &B);                                                                                                  int count = 1;                                                                                                          int total = A;                                                                                                          while(1){                                                                                                                     if(A == B){                                                                                                                     count = 1;                                                                                                              break;                                                                                                          }                                                                                                                       total += A - 1;                                                                                                         count++;                                                                                                                if(total >= B) break;                                                                                                                                                                                                                     }                                                                                                                       printf("%d\n",count);                                                                                                   return 0;                                               

Compiler output:
main.c:1:241: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>                                                                                                                                                                                                                               int main(void){                                                                                                                   int A;                                                                                                                  int B;                                                                                                                  scanf("%d%d", &A, &B);                                                                                                  int count = 1;                                                                                                          int total = A;                                                                                                          while(1){                                                                                                                     if(A == B){                                                                                                                     count = 1;                                                                                                              break;                                                                                                          }                                                                                                                       total += A - 1;                                                                                                         count++;                                                                                                                if(total >= B) break;                                                                                                                                                                                                                     }                                                                                                                       printf("%d\n",count);                                                                                                   return 0;
      |                                                                                                                                                                                                                                                 ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status