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_38825014_18745.cpp:2:2: error: invalid preprocessing directive #defineIOstd
    2 | #defineIOstd::ios::sync_with_stdio(false); \
      |  ^~~~~~~~~~~
0_0_38825014_18745.cpp:6:2: error: invalid preprocessing directive #defineall; did you mean #define?
    6 | #defineall(v) v.begin(),v.end()
      |  ^~~~~~~~~
      |  define
0_0_38825014_18745.cpp:8:2: error: invalid preprocessing directive #defineintlong
    8 | #defineintlong long
      |  ^~~~~~~~~~~~~
0_0_38825014_18745.cpp:9:2: error: invalid preprocessing directive #definepiipair
    9 | #definepiipair<int,int>
      |  ^~~~~~~~~~~~~
0_0_38825014_18745.cpp:10:2: error: invalid preprocessing directive #defineldlong
   10 | #defineldlong double
      |  ^~~~~~~~~~~~
0_0_38825014_18745.cpp:11:2: error: invalid preprocessing directive #definexfirst
   11 | #definexfirst
      |  ^~~~~~~~~~~~
0_0_38825014_18745.cpp:12:2: error: invalid preprocessing directive #defineysecond
   12 | #defineysecond
      |  ^~~~~~~~~~~~~
0_0_38825014_18745.cpp:13:2: error: invalid preprocessing directive #defineendl; did you mean #define?
   13 | #defineendl'\n'
      |  ^~~~~~~~~~
      |  define
0_0_38825014_18745.cpp:14:2: error: invalid preprocessing directive #defineinf0x3f3f3f3f
   14 | #defineinf0x3f3f3f3f
      |  ^~~~~~~~~~~~~~~~~~~
0_0_38825014_18745.cpp:16:1: error: 'constintN' does not name a type; did you mean 'constinit'?
   16 | constintN = 2e5+10;
      | ^~~~~~~~~
      | constinit
0_0_38825014_18745.cpp: In function 'void solve()':
0_0_38825014_18745.cpp:19:1: error: 'intn' was not declared in this scope; did you mean 'int'?
   19 | intn;
      | ^~~~
      | int
0_0_38825014_18745.cpp:20:10: error: 'n' was not declared in this scope
   20 |     cin>>n;
      |          ^
0_0_38825014_18745.cpp:21:12: error: 'pii' was not declared in this scope
   21 |     vector<pii> ms;
      |            ^~~
0_0_38825014_18745.cpp:21:15: error: template argument 1 is invalid
   21 |     vector<pii> ms;
      |               ^
0_0_38825014_18745.cpp:21:15: error: template argument 2 is invalid
0_0_38825014_18745.cpp:22:9: error: 'inti' was not declared in this scope; did you mean 'int'?
   22 |     for(inti = 0 ; i < n ; i++ ){
      |         ^~~~
      |         int
0_0_38825014_18745.cpp:22:20: error: 'i' was not declared in this scope
   22 |     for(inti = 0 ; i < n ; i++ ){
      |                    ^
0_0_38825014_18745.cpp:23:1: error: 'intm' was not declared in this scope; did you mean 'int'?
   23 | intm ;
      | ^~~~
      | int
0_0_38825014_18745.cpp:24:14: error: 'm' was not declared in this scope; did you mean 'ms'?
   24 |         cin>>m ;
      |              ^
      |              ms
0_0_38825014_18745.cpp:25:13: error: 'intj' was not declared in this scope; did you mean 'int'?
   25 |         for(intj = 0 ; j < m ; j++ ){
      |             ^~~~
      |             int
0_0_38825014_18745.cpp:25:24: error: 'j' was not declared in this scope
   25 |         for(intj = 0 ; j < m ; j++ ){
      |                        ^
0_0_38825014_18745.cpp:28:16: error: request for member 'push_back' in 'ms', which is of non-class type 'int'
   28 |             ms.push_back({x,i});
      |                ^~~~~~~~~
0_0_38825014_18745.cpp:31:10: error: 'all' was not declared in this scope
   31 |     sort(all(ms));
      |          ^~~
0_0_38825014_18745.cpp:31:10: note: suggested alternatives:
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:46,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_fwd.h:154:7: note:   'std::filesystem::perms::all'
  154 |       all               =  0777,
      |       ^~~
In file included from .\stdc++.h:89:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/ranges:1308:27: note:   'std::ranges::views::all'
 1308 |     inline constexpr _All all;
      |                           ^~~
0_0_38825014_18745.cpp: In lambda function:
0_0_38825014_18745.cpp:34:1: error: 'intl' was not declared in this scope; did you mean 'rintl'?
   34 | intl = 0 , r = 0 , cnt = 0 , ans = 1e18+7;
      | ^~~~
      | rintl
0_0_38825014_18745.cpp:34:12: error: 'r' was not declared in this scope
   34 | intl = 0 , r = 0 , cnt = 0 , ans = 1e18+7;
      |            ^
0_0_38825014_18745.cpp:34:20: error: 'cnt' was not declared in this scope; did you mean 'int'?
   34 | intl = 0 , r = 0 , cnt = 0 , ans = 1e18+7;
      |                    ^~~
      |                    int
0_0_38825014_18745.cpp:34:30: error: 'ans' was not declared in this scope; did you mean 'abs'?
   34 | intl = 0 , r = 0 , cnt = 0 , ans = 1e18+7;
      |                              ^~~
      |                              abs
0_0_38825014_18745.cpp:35:23: error: request for member 'size' in 'ms', which is of non-class type 'int'
   35 |         while( r < ms.size() ){
      |                       ^~~~
0_0_38825014_18745.cpp:39:43: error: 'l' was not declared in this scope
   39 |                 ans = min(ans,ms[r].x- ms[l].x);
      |                                           ^
0_0_38825014_18745.cpp: In function 'int main()':
0_0_38825014_18745.cpp:50:1: error: 'IO' was not declared in this scope; did you mean 'EIO'?
   50 | IO;
      | ^~
      | EIO
0_0_38825014_18745.cpp:51:1: error: 'intt' was not declared in this scope; did you mean 'int'?
   51 | intt;
      | ^~~~
      | int
0_0_38825014_18745.cpp:52:10: error: 't' was not declared in this scope; did you mean 'tm'?
   52 |     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-06-26 16:06:33, Gzip enabled