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_29147156_7528.cpp:6:36: error: two or more data types in declaration of 'N'
 #define ll long long int const int N = 1e5;
                                    ^
0_0_29147156_7528.cpp:7:2: note: in expansion of macro 'll'
  ll x[N], a, b, k;
  ^
0_0_29147156_7528.cpp:7:5: error: 'x' does not name a type
  ll x[N], a, b, k;
     ^
0_0_29147156_7528.cpp:6:36: error: two or more data types in declaration of 'N'
 #define ll long long int const int N = 1e5;
                                    ^
0_0_29147156_7528.cpp:8:2: note: in expansion of macro 'll'
  ll gcd(ll a, ll b)
  ^
0_0_29147156_7528.cpp:6:40: error: two or more data types in declaration of 'N'
 #define ll long long int const int N = 1e5;
                                        ^
0_0_29147156_7528.cpp:8:9: note: in expansion of macro 'll'
  ll gcd(ll a, ll b)
         ^
0_0_29147156_7528.cpp:6:43: error: expected ')' before ';' token
 #define ll long long int const int N = 1e5;
                                           ^
0_0_29147156_7528.cpp:8:9: note: in expansion of macro 'll'
  ll gcd(ll a, ll b)
         ^
0_0_29147156_7528.cpp:6:43: error: expected constructor, destructor, or type conversion before ';' token
 #define ll long long int const int N = 1e5;
                                           ^
0_0_29147156_7528.cpp:8:9: note: in expansion of macro 'll'
  ll gcd(ll a, ll b)
         ^
0_0_29147156_7528.cpp:8:12: error: 'a' does not name a type
  ll gcd(ll a, ll b)
            ^
0_0_29147156_7528.cpp:8:18: error: 'b' does not name a type
  ll gcd(ll a, ll b)
                  ^
0_0_29147156_7528.cpp: In function 'int main()':
0_0_29147156_7528.cpp:19:11: error: 'x' was not declared in this scope
    memset(x, 0, sizeof(x));   
           ^
0_0_29147156_7528.cpp:20:29: error: 'a' was not declared in this scope
      scanf("%lld%lld%lld", &a, &b, &k);    
                             ^
0_0_29147156_7528.cpp:20:33: error: 'b' was not declared in this scope
      scanf("%lld%lld%lld", &a, &b, &k);    
                                 ^
0_0_29147156_7528.cpp:20:37: error: 'k' was not declared in this scope
      scanf("%lld%lld%lld", &a, &b, &k);    
                                     ^
0_0_29147156_7528.cpp:6:36: error: two or more data types in declaration of 'N'
 #define ll long long int const int N = 1e5;
                                    ^
0_0_29147156_7528.cpp:21:5: note: in expansion of macro 'll'
     ll d = gcd(a,b);   
     ^
0_0_29147156_7528.cpp:21:8: error: 'd' was not declared in this scope
     ll d = gcd(a,b);   
        ^
0_0_29147156_7528.cpp:21:19: error: 'gcd' was not declared in this scope
     ll d = gcd(a,b);   
                   ^
0_0_29147156_7528.cpp:6:36: error: two or more data types in declaration of 'N'
 #define ll long long int const int N = 1e5;
                                    ^
0_0_29147156_7528.cpp:22:6: note: in expansion of macro 'll'
      ll i, j = 0;     
      ^
0_0_29147156_7528.cpp:22:9: error: 'i' was not declared in this scope
      ll i, j = 0;     
         ^
0_0_29147156_7528.cpp:22:12: error: 'j' was not declared in this scope
      ll i, j = 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-17 06:56:03, Gzip enabled