0_0_20612157_23440.cpp:9:25: error: stray '#' in program
using namespace std;#define M 2000000000#define N 100005int a[N],b[N];int main(){ int n,i,j,g; while(~scanf("%d",&n)) { for(i=1;i<=(n-1)*n/2;i++) { scanf("%d",&a[i]); } g=(a[1]+a[2]-a[n])/2; printf("%d\n",g); for(i=1;i<n;i++) printf("%d\n",a[i]-g); } return 0;}
^
0_0_20612157_23440.cpp:9:45: error: stray '#' in program
using namespace std;#define M 2000000000#define N 100005int a[N],b[N];int main(){ int n,i,j,g; while(~scanf("%d",&n)) { for(i=1;i<=(n-1)*n/2;i++) { scanf("%d",&a[i]); } g=(a[1]+a[2]-a[n])/2; printf("%d\n",g); for(i=1;i<n;i++) printf("%d\n",a[i]-g); } return 0;}
^
0_0_20612157_23440.cpp:9:26: error: 'define' does not name a type
using namespace std;#define M 2000000000#define N 100005int a[N],b[N];int main(){ int n,i,j,g; while(~scanf("%d",&n)) { for(i=1;i<=(n-1)*n/2;i++) { scanf("%d",&a[i]); } g=(a[1]+a[2]-a[n])/2; printf("%d\n",g); for(i=1;i<n;i++) printf("%d\n",a[i]-g); } return 0;}
^
0_0_20612157_23440.cpp: In function 'int main()':
0_0_20612157_23440.cpp:9:199: error: 'a' was not declared in this scope
using namespace std;#define M 2000000000#define N 100005int a[N],b[N];int main(){ int n,i,j,g; while(~scanf("%d",&n)) { for(i=1;i<=(n-1)*n/2;i++) { scanf("%d",&a[i]); } g=(a[1]+a[2]-a[n])/2; printf("%d\n",g); for(i=1;i<n;i++) printf("%d\n",a[i]-g); } return 0;}
^
0_0_20612157_23440.cpp:9:225: error: 'a' was not declared in this scope
using namespace std;#define M 2000000000#define N 100005int a[N],b[N];int main(){ int n,i,j,g; while(~scanf("%d",&n)) { for(i=1;i<=(n-1)*n/2;i++) { scanf("%d",&a[i]); } g=(a[1]+a[2]-a[n])/2; printf("%d\n",g); for(i=1;i<n;i++) printf("%d\n",a[i]-g); } return 0;}
^
|