F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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;}
                                                                                                                                                                                                                                 ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 17:38:29, Gzip enabled