Run id: 119771
Main.cc: In function 'int main()':
Main.cc:10:5: error: expected initializer before 'for'
for(int i=0;i<=n+1;i++){
^
Main.cc:10:17: error: 'i' was not declared in this scope
for(int i=0;i<=n+1;i++){
^
Main.cc:13:11: error: invalid types 'int[int]' for array subscript
B1=n[1]-n[0];
^
Main.cc:13:16: error: invalid types 'int[int]' for array subscript
B1=n[1]-n[0];
^
Main.cc:14:11: error: invalid types 'int[int]' for array subscript
B2=n[2]-n[1];
^
Main.cc:14:16: error: invalid types 'int[int]' for array subscript
B2=n[2]-n[1];
^
Main.cc:16:11: error: 'a' was not declared in this scope
m=a[0]+(n-1)*(a[1]-a[0]);
^
Main.cc:19:11: error: 'a' was not declared in this scope
m=a[0]*pow(a[1]/a[0],n-1);
^