Submission #1013770

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
10137702024-07-04 05:40:02ReLiceBuilding 4 (JOI20_building4)C++17
0 / 100
2093 ms141980 KiB
#include <bits/stdc++.h>
#define ll long long
#define str string
#define ins insert
#define ld long double
#define pb push_back
#define pf push_front
#define pof pop_front()
#define pob pop_back()
#define lb lower_bound
#define ub upper_bound
//#define endl "\n"
#define fr first
#define sc second
#define all(x) x.begin(),x.end()
#define rall(x) x.rbegin(),x.rend()
#define sz size()
#define vll vector<ll>
#define bc back()
#define arr array
#define pll vector<pair<ll,ll>>
using namespace std;
template<class S,class T>
bool chmin(S &a,const T &b) {
return a>b?(a=b)==b:false;
}
template<class S,class T>
bool chmax(S &a,const T &b) {
return a<b?(a=b)==b:false;
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

building4.cpp: In function 'bool s2(std::string, std::vector<long long int>, std::vector<long long int>)':
building4.cpp:81:14: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   81 |     for(i=0;i<ans.sz;i++){
      |              ^
building4.cpp: In function 'int main()':
building4.cpp:102:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  102 |             for(auto i : a) cout<<i<<' ';cout<<endl;
      |             ^~~
building4.cpp:102:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  102 |             for(auto i : a) cout<<i<<' ';cout<<endl;
      |                                          ^~~~
building4.cpp:103:13: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
  103 |             for(auto i : b) cout<<i<<' ';cout<<endl;
      |             ^~~
building4.cpp:103:42: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
  103 |             for(auto i : b) cout<<i<<' ';cout<<endl;
      |                                          ^~~~
building4.cpp:92:8: warning: unused variable 'i' [-Wunused-variable]
   92 |     ll i;
      |        ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...