Submission #473102

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
4731022021-09-15 06:52:14jwvg0425Holiday (IOI14_holiday)C++17
0 / 100
58 ms65540 KiB
#include <stdio.h>
#include <vector>
#include <queue>
#include <algorithm>
#include <iostream>
#include <string>
#include <bitset>
#include <map>
#include <set>
#include <tuple>
#include <string.h>
#include <math.h>
#include <random>
#include <functional>
#include <assert.h>
#include <math.h>
#define all(x) (x).begin(), (x).end()
#define xx first
#define yy second
using namespace std;
using i64 = long long int;
using ii = pair<int, int>;
using ii64 = pair<i64, i64>;
template<typename T>
class PST
{
struct Node
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

holiday.cpp: In instantiation of 'PST<T>::PST(int, const M&) [with M = <lambda(const Pt&, const Pt&)>; T = std::pair<long long int, int>]':
holiday.cpp:172:98:   required from here
holiday.cpp:166:6: warning: 'PST<std::pair<long long int, int> >::n' will be initialized after [-Wreorder]
  166 |  int n;
      |      ^
holiday.cpp:163:8: warning:   'PST<std::pair<long long int, int> >::Merge PST<std::pair<long long int, int> >::merge' [-Wreorder]
  163 |  Merge merge;
      |        ^~~~~
holiday.cpp:73:2: warning:   when initialized here [-Wreorder]
   73 |  PST(int n_, const M& m) : n(n_), merge(m)
      |  ^~~
holiday.cpp: In instantiation of 'PST<T>::PST(int, const M&) [with M = solve()::<lambda(const Pt&, const Pt&)>; T = std::pair<long long int, int>]':
holiday.cpp:262:94:   required from here
holiday.cpp:166:6: warning: 'PST<std::pair<long long int, int> >::n' will be initialized after [-Wreorder]
  166 |  int n;
      |      ^
holiday.cpp:163:8: warning:   'PST<std::pair<long long int, int> >::Merge PST<std::pair<long long int, int> >::merge' [-Wreorder]
  163 |  Merge merge;
      |        ^~~~~
holiday.cpp:73:2: warning:   when initialized here [-Wreorder]
   73 |  PST(int n_, const M& m) : n(n_), merge(m)
      |  ^~~
holiday.cpp: In instantiation of 'PST<T>::Node::Node() [with T = std::pair<long long int, int>]':
holiday.cpp:73:42:   required from 'PST<T>::PST(int, const M&) [with M = <lambda(const Pt&, const Pt&)>; T = std::pair<long long int, int>]'
holiday.cpp:172:98:   required from here
holiday.cpp:33:5: warning: 'PST<std::pair<long long int, int> >::Node::value' will be initialized after [-Wreorder]
   33 |   T value;
      |     ^~~~~
holiday.cpp:32:7: warning:   'int PST<std::pair<long long int, int> >::Node::lidx' [-Wreorder]
   32 |   int lidx, ridx;
      |       ^~~~
holiday.cpp:35:3: warning:   when initialized here [-Wreorder]
   35 |   Node() :value(T()), lidx(-1), ridx(-1) {}
      |   ^~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...