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_39008237_22079.cpp: In function 'int main()':
0_0_39008237_22079.cpp:25:28: error: 'path' was not declared in this scope; did you mean 'std::filesystem::__cxx11::path'?
   25 |         while(pre[pos]!=-1)path[++cnt]=pos,pos=pre[pos];
      |                            ^~~~
      |                            std::filesystem::__cxx11::path
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:47,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_path.h:289:9: note: 'std::filesystem::__cxx11::path' declared here
  289 |   class path
      |         ^~~~
0_0_39008237_22079.cpp:25:35: error: 'cnt' was not declared in this scope; did you mean 'int'?
   25 |         while(pre[pos]!=-1)path[++cnt]=pos,pos=pre[pos];
      |                                   ^~~
      |                                   int
0_0_39008237_22079.cpp:26:9: error: 'path' was not declared in this scope; did you mean 'std::filesystem::__cxx11::path'?
   26 |         path[++cnt]=pos;
      |         ^~~~
      |         std::filesystem::__cxx11::path
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_path.h:289:9: note: 'std::filesystem::__cxx11::path' declared here
  289 |   class path
      |         ^~~~
0_0_39008237_22079.cpp:26:16: error: 'cnt' was not declared in this scope; did you mean 'int'?
   26 |         path[++cnt]=pos;
      |                ^~~
      |                int


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-23 09:50:32, Gzip enabled