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_30659074_5434.cpp:3:24: error: expected initializer before numeric constant
 typedef long long _int 128;
                        ^
0_0_30659074_5434.cpp:6:1: error: 'll' does not name a type
 ll a[maxn],b[maxn];
 ^
0_0_30659074_5434.cpp:7:1: error: 'll' does not name a type
 ll gcd(ll a,ll b,ll &x,ll &y)
 ^
0_0_30659074_5434.cpp: In function 'int slove()':
0_0_30659074_5434.cpp:25:5: error: 'll' was not declared in this scope
     ll ans = a[1],M = b[1],x,y;
     ^
0_0_30659074_5434.cpp:28:12: error: expected ';' before 'c'
         ll c = a[i] - ans;
            ^
0_0_30659074_5434.cpp:29:12: error: expected ';' before 'd'
         ll d = gcd(M,b[i],x,y);
            ^
0_0_30659074_5434.cpp:30:12: error: 'c' was not declared in this scope
         if(c%d)return -1;
            ^
0_0_30659074_5434.cpp:30:14: error: 'd' was not declared in this scope
         if(c%d)return -1;
              ^
0_0_30659074_5434.cpp:31:9: error: 'x' was not declared in this scope
         x=x*(c/d);
         ^
0_0_30659074_5434.cpp:31:14: error: 'c' was not declared in this scope
         x=x*(c/d);
              ^
0_0_30659074_5434.cpp:31:16: error: 'd' was not declared in this scope
         x=x*(c/d);
                ^
0_0_30659074_5434.cpp:32:12: error: expected ';' before 't'
         ll t = b[i]/d;
            ^
0_0_30659074_5434.cpp:33:16: error: 't' was not declared in this scope
         x = (x%t+t)%t;
                ^
0_0_30659074_5434.cpp:34:9: error: 'ans' was not declared in this scope
         ans = ans+M*x;
         ^
0_0_30659074_5434.cpp:34:19: error: 'M' was not declared in this scope
         ans = ans+M*x;
                   ^
0_0_30659074_5434.cpp:35:13: error: 'b' was not declared in this scope
         M = b[i]/d*M;
             ^
0_0_30659074_5434.cpp:38:8: error: 'ans' was not declared in this scope
     if(ans<0)return (ans+M);
        ^
0_0_30659074_5434.cpp:38:26: error: 'M' was not declared in this scope
     if(ans<0)return (ans+M);
                          ^
0_0_30659074_5434.cpp: In function 'int main()':
0_0_30659074_5434.cpp:43:2: error: 'll' was not declared in this scope
  ll h;
  ^
0_0_30659074_5434.cpp:44:30: error: 'h' was not declared in this scope
     while(scanf("%d%lld",&m,&h),h!=0,m!=0)
                              ^
0_0_30659074_5434.cpp:47:20: error: 'b' was not declared in this scope
      scanf("%lld",&b[i]),a[i] = b[i]-h;
                    ^
0_0_30659074_5434.cpp:47:26: error: 'a' was not declared in this scope
      scanf("%lld",&b[i]),a[i] = b[i]-h;
                          ^


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-29 22:23:45, Gzip enabled