Run id: 147024

Main.cc: In function 'int main()':
Main.cc:15:5: error: expected ';' before 'if'
     if(d2==d1)
     ^
Main.cc:17:6: error: 'else' without a previous 'if'
      else a[n]=a[1]*pow(a[2]/a[1],n-1);
      ^