Submission #1157744

#TimeUsernameProblemLanguageResultExecution timeMemory
1157744aritro_Nile (IOI24_nile)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; typedef long long int ll; #define int ll vector<int> calculate_costs( vector<int>W,vector<int>A, vector<int>B,vector<int>E){ vector<int> costs(e.size(),2); return costs; }

Compilation message (stderr)

nile.cpp: In function 'std::vector<long long int> calculate_costs(std::vector<long long int>, std::vector<long long int>, std::vector<long long int>, std::vector<long long int>)':
nile.cpp:10:23: error: 'e' was not declared in this scope; did you mean 'std::numbers::e'?
   10 |     vector<int> costs(e.size(),2);
      |                       ^
      |                       std::numbers::e
In file included from /usr/include/c++/11/bits/max_size_type.h:37,
                 from /usr/include/c++/11/bits/ranges_base.h:38,
                 from /usr/include/c++/11/string_view:48,
                 from /usr/include/c++/11/bits/basic_string.h:48,
                 from /usr/include/c++/11/string:55,
                 from /usr/include/c++/11/bits/locale_classes.h:40,
                 from /usr/include/c++/11/bits/ios_base.h:41,
                 from /usr/include/c++/11/ios:42,
                 from /usr/include/c++/11/istream:38,
                 from /usr/include/c++/11/sstream:38,
                 from /usr/include/c++/11/complex:45,
                 from /usr/include/c++/11/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:54,
                 from nile.cpp:1:
/usr/include/c++/11/numbers:122:27: note: 'std::numbers::e' declared here
  122 |   inline constexpr double e = e_v<double>;
      |                           ^