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_39475423_24229.cpp: In function 'void solve()':
0_0_39475423_24229.cpp:7:5: error: 'll' was not declared in this scope
    7 |     ll n;
      |     ^~
0_0_39475423_24229.cpp:8:16: error: 'n' was not declared in this scope
    8 |     while(cin>>n)
      |                ^
0_0_39475423_24229.cpp:10:22: error: template argument 4 is invalid
   10 |         map<string,ll>b;
      |                      ^
0_0_39475423_24229.cpp:11:15: error: expected ';' before 'i'
   11 |         for(ll i=1;i<=n;i++)
      |               ^~
      |               ;
0_0_39475423_24229.cpp:11:20: error: 'i' was not declared in this scope
   11 |         for(ll i=1;i<=n;i++)
      |                    ^
0_0_39475423_24229.cpp:16:11: error: expected ';' before 'm'
   16 |         ll m;
      |           ^~
      |           ;
0_0_39475423_24229.cpp:17:14: error: 'm' was not declared in this scope
   17 |         cin>>m;
      |              ^
0_0_39475423_24229.cpp:18:15: error: expected ';' before 'i'
   18 |         for(ll i=1;i<=m;i++)
      |               ^~
      |               ;
0_0_39475423_24229.cpp:18:20: error: 'i' was not declared in this scope
   18 |         for(ll i=1;i<=m;i++)
      |                    ^
0_0_39475423_24229.cpp:20:19: error: expected ';' before 'j'
   20 |             for(ll j=1;j<=n;j++)
      |                   ^~
      |                   ;
0_0_39475423_24229.cpp:20:24: error: 'j' was not declared in this scope
   20 |             for(ll j=1;j<=n;j++)
      |                        ^
0_0_39475423_24229.cpp:22:19: error: expected ';' before 't'
   22 |                 ll t;
      |                   ^~
      |                   ;
0_0_39475423_24229.cpp:24:22: error: 't' was not declared in this scope
   24 |                 cin>>t>>s;
      |                      ^
0_0_39475423_24229.cpp:25:18: error: no match for 'operator[]' (operand types are 'int' and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   25 |                 b[s]+=t;
      |                  ^
0_0_39475423_24229.cpp:27:15: error: expected ';' before 'rk'
   27 |             ll rk=1;
      |               ^~~
      |               ;
0_0_39475423_24229.cpp:28:27: error: 'begin' was not declared in this scope
   28 |             for(auto[x,y]:b)
      |                           ^
0_0_39475423_24229.cpp:28:27: note: suggested alternatives:
In file included from .\stdc++.h:166:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1230:5: note:   'std::begin'
 1230 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algobase.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_algo.h:38,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:63,
                 from .\stdc++.h:51:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:489:44: note:   'std::ranges::__cust::begin'
  489 |     inline constexpr __cust_access::_Begin begin{};
      |                                            ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/filesystem:48,
                 from .\stdc++.h:200:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:576:3: note:   'std::filesystem::__cxx11::begin'
  576 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_iterator_base_types.h:71,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:65,
                 from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/algorithm:60:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/iterator_concepts.h:969:10: note:   'std::ranges::__cust_access::begin'
  969 |     void begin(const auto&) = delete;
      |          ^~~~~
0_0_39475423_24229.cpp:28:27: error: 'end' was not declared in this scope
   28 |             for(auto[x,y]:b)
      |                           ^
0_0_39475423_24229.cpp:28:27: note: suggested alternatives:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/valarray:1257:5: note:   'std::end'
 1257 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:490:42: note:   'std::ranges::__cust::end'
  490 |     inline constexpr __cust_access::_End end{};
      |                                          ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/fs_dir.h:581:3: note:   'std::filesystem::__cxx11::end'
  581 |   end(recursive_directory_iterator) noexcept
      |   ^~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/ranges_base.h:137:10: note:   'std::ranges::__cust_access::end'
  137 |     void end(const auto&) = delete;
      |          ^~~
0_0_39475423_24229.cpp:32:21: error: 'rk' was not declared in this scope
   32 |                     rk++;
      |                     ^~
0_0_39475423_24229.cpp:35:29: error: 'rk' was not declared in this scope
   35 |             printf("%lld\n",rk);
      |                             ^~


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-12-03 17:16:16, Gzip enabled