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_39799747_2861.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_39799747_2861.cpp:4:7: note: in expansion of macro 'int'
    4 | const int N=100005,M=2*N;
      |       ^~~
0_0_39799747_2861.cpp:4:11: error: 'N' does not name a type
    4 | const int N=100005,M=2*N;
      |           ^
0_0_39799747_2861.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_39799747_2861.cpp:5:1: note: in expansion of macro 'int'
    5 | int t,n,k,l,r;
      | ^~~
0_0_39799747_2861.cpp:5:5: error: 't' does not name a type; did you mean 'tm'?
    5 | int t,n,k,l,r;
      |     ^
      |     tm
0_0_39799747_2861.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_39799747_2861.cpp:6:1: note: in expansion of macro 'int'
    6 | int a[N];
      | ^~~
0_0_39799747_2861.cpp:6:5: error: 'a' does not name a type
    6 | int a[N];
      |     ^
0_0_39799747_2861.cpp:3:22: error: expected ')' before ';' token
    3 | #define int long long;
      |                      ^
0_0_39799747_2861.cpp:8:12: note: in expansion of macro 'int'
    8 | bool check(int mid)
      |            ^~~
0_0_39799747_2861.cpp:8:11: note: to match this '('
    8 | bool check(int mid)
      |           ^
0_0_39799747_2861.cpp:8:16: error: 'mid' does not name a type
    8 | bool check(int mid)
      |                ^~~
0_0_39799747_2861.cpp: In function 'void solve()':
0_0_39799747_2861.cpp:42:10: error: 'n' was not declared in this scope
   42 |     cin>>n>>k;
      |          ^
0_0_39799747_2861.cpp:42:13: error: 'k' was not declared in this scope
   42 |     cin>>n>>k;
      |             ^
0_0_39799747_2861.cpp:43:5: error: 'l' was not declared in this scope
   43 |     l=2,r=n;
      |     ^
0_0_39799747_2861.cpp:43:9: error: 'r' was not declared in this scope
   43 |     l=2,r=n;
      |         ^
0_0_39799747_2861.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_39799747_2861.cpp:44:9: note: in expansion of macro 'int'
   44 |     for(int i=1;i<=n;i++) cin>>a[i];
      |         ^~~
0_0_39799747_2861.cpp:44:13: error: 'i' was not declared in this scope
   44 |     for(int i=1;i<=n;i++) cin>>a[i];
      |             ^
0_0_39799747_2861.cpp:44:21: error: expected ')' before ';' token
   44 |     for(int i=1;i<=n;i++) cin>>a[i];
      |        ~            ^
      |                     )
0_0_39799747_2861.cpp:44:22: error: 'i' was not declared in this scope
   44 |     for(int i=1;i<=n;i++) cin>>a[i];
      |                      ^
0_0_39799747_2861.cpp:45:10: error: 'a' was not declared in this scope
   45 |     sort(a+1,a+1+n);
      |          ^
0_0_39799747_2861.cpp:3:18: error: declaration does not declare anything [-fpermissive]
    3 | #define int long long;
      |                  ^~~~
0_0_39799747_2861.cpp:48:9: note: in expansion of macro 'int'
   48 |         int mid=l+r >>1;
      |         ^~~
0_0_39799747_2861.cpp:48:13: error: 'mid' was not declared in this scope
   48 |         int mid=l+r >>1;
      |             ^~~
0_0_39799747_2861.cpp: In function 'int main()':
0_0_39799747_2861.cpp:61:10: error: 't' was not declared in this scope; did you mean 'tm'?
   61 |     cin>>t;
      |          ^
      |          tm


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-16 22:20:07, Gzip enabled