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_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:8:7: note: in expansion of macro 'int'
 const int N=2e5+10;
       ^
0_0_36567214_19072.cpp:8:11: error: 'N' does not name a type
 const int N=2e5+10;
           ^
0_0_36567214_19072.cpp:9:10: error: 'N' was not declared in this scope
 ll t,n,a[N];
          ^
0_0_36567214_19072.cpp: In function 'void solve()':
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:36:5: note: in expansion of macro 'int'
     int idx1=dist(rand_num),idx2=dist(rand_num);
     ^
0_0_36567214_19072.cpp:36:9: error: 'idx1' was not declared in this scope
     int idx1=dist(rand_num),idx2=dist(rand_num);
         ^
0_0_36567214_19072.cpp:36:29: error: 'idx2' was not declared in this scope
     int idx1=dist(rand_num),idx2=dist(rand_num);
                             ^
0_0_36567214_19072.cpp:40:18: error: 'a' was not declared in this scope
     ll dif = abs(a[idx2]-a[idx1]);
                  ^
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:45:5: note: in expansion of macro 'int'
     int c=0;
     ^
0_0_36567214_19072.cpp:45:9: error: 'c' was not declared in this scope
     int c=0;
         ^
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:46:5: note: in expansion of macro 'int'
     int len=fac.size()-1;
     ^
0_0_36567214_19072.cpp:46:9: error: 'len' was not declared in this scope
     int len=fac.size()-1;
         ^
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:47:9: note: in expansion of macro 'int'
     for(int i=0;i<fac.size();i++)
         ^
0_0_36567214_19072.cpp:47:13: error: 'i' was not declared in this scope
     for(int i=0;i<fac.size();i++)
             ^
0_0_36567214_19072.cpp:47:29: error: expected ')' before ';' token
     for(int i=0;i<fac.size();i++)
                             ^
0_0_36567214_19072.cpp:47:30: error: 'i' was not declared in this scope
     for(int i=0;i<fac.size();i++)
                              ^
0_0_36567214_19072.cpp: In function 'int main()':
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:70:13: note: in expansion of macro 'int'
         for(int i=1;i<=n;i++) cin>>a[i];
             ^
0_0_36567214_19072.cpp:70:17: error: 'i' was not declared in this scope
         for(int i=1;i<=n;i++) cin>>a[i];
                 ^
0_0_36567214_19072.cpp:70:25: error: expected ')' before ';' token
         for(int i=1;i<=n;i++) cin>>a[i];
                         ^
0_0_36567214_19072.cpp:70:26: error: 'i' was not declared in this scope
         for(int i=1;i<=n;i++) cin>>a[i];
                          ^
0_0_36567214_19072.cpp:5:13: error: declaration does not declare anything [-fpermissive]
 #define int ll;
             ^
0_0_36567214_19072.cpp:73:9: note: in expansion of macro 'int'
         int d=20;
         ^
0_0_36567214_19072.cpp:73:13: error: 'd' was not declared in this scope
         int d=20;
             ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-27 22:59:49, Gzip enabled