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_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:4:7: note: in expansion of macro 'int'
 const int N = 1e5 + 5;
       ^
0_0_37775727_3684.cpp:4:11: error: 'N' does not name a type
 const int N = 1e5 + 5;
           ^
0_0_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:5:1: note: in expansion of macro 'int'
 int a[N];
 ^
0_0_37775727_3684.cpp:5:5: error: 'a' does not name a type
 int a[N];
     ^
0_0_37775727_3684.cpp: In function 'int main()':
0_0_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:9:5: note: in expansion of macro 'int'
     int t, n, x, k, p;
     ^
0_0_37775727_3684.cpp:9:9: error: 't' was not declared in this scope
     int t, n, x, k, p;
         ^
0_0_37775727_3684.cpp:9:12: error: 'n' was not declared in this scope
     int t, n, x, k, p;
            ^
0_0_37775727_3684.cpp:9:15: error: 'x' was not declared in this scope
     int t, n, x, k, p;
               ^
0_0_37775727_3684.cpp:9:18: error: 'k' was not declared in this scope
     int t, n, x, k, p;
                  ^
0_0_37775727_3684.cpp:9:21: error: 'p' was not declared in this scope
     int t, n, x, k, p;
                     ^
0_0_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:15:13: note: in expansion of macro 'int'
         for(int i = 1; i <= n; i++)
             ^
0_0_37775727_3684.cpp:15:17: error: 'i' was not declared in this scope
         for(int i = 1; i <= n; i++)
                 ^
0_0_37775727_3684.cpp:15:30: error: expected ')' before ';' token
         for(int i = 1; i <= n; i++)
                              ^
0_0_37775727_3684.cpp:15:32: error: 'i' was not declared in this scope
         for(int i = 1; i <= n; i++)
                                ^
0_0_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:18:9: note: in expansion of macro 'int'
         int maxx = 0;
         ^
0_0_37775727_3684.cpp:18:13: error: 'maxx' was not declared in this scope
         int maxx = 0;
             ^
0_0_37775727_3684.cpp:2:18: error: declaration does not declare anything [-fpermissive]
 #define int long long;
                  ^
0_0_37775727_3684.cpp:20:13: note: in expansion of macro 'int'
         for(int i = p + 1; i < p + k + 1 && i <= n; i ++)
             ^
0_0_37775727_3684.cpp:20:51: error: expected ')' before ';' token
         for(int i = p + 1; i < p + k + 1 && i <= n; i ++)
                                                   ^


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-26 10:49:58, Gzip enabled