QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#379112#7779. Swiss Stageucup-team2230#Compile Error//C++23819b2024-04-06 16:14:232024-04-06 16:14:24

Judging History

你现在查看的是最新测评结果

  • [2024-04-06 16:14:24]
  • 评测
  • [2024-04-06 16:14:23]
  • 提交

answer

#ifndef LOCAL
#pragma GCC optimize ("Ofast")
#pragma GCC optimize ("unroll-loops")
#endif

#include <bits/stdc++.h>
using namespace std;

using ll=long long;
using uint=unsigned;

#define rng(i,a,b) for(int i=int(a);i<int(b);i++)
#define rep(i,b) rng(i,0,b)
#define pb push_back
#define eb emplace_back
#define all(x) x.begin(),x.end()
#define si(x) int(x.size())
#define a first
#define b second
template<class t>using vc=vector<t>;

template<class t,class u> bool chmax(t&a,u b){if(a<b){a=b; return true;}else return false;}
template<class t,class u> bool chmin(t&a,u b){if(a>b){a=b; return true;}else return false;}

template<class t,class u>
ostream& operator<<(ostre

using P=pair<int,int>;

signed main(){
	cin.tie(0);
	ios::sync_with_stdio(0);
	cout<<fixed<<setprecision(20);
}

Details

answer.code:26:10: error: declaration of ‘operator<<’ as non-function
   26 | ostream& operator<<(ostre
      |          ^~~~~~~~
answer.code:26:21: error: ‘ostre’ was not declared in this scope
   26 | ostream& operator<<(ostre
      |                     ^~~~~
answer.code:28:18: error: expected primary-expression before ‘int’
   28 | using P=pair<int,int>;
      |                  ^~~