QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#294169#6418. Ah, It's Yesterday Once Moregeorgeyucjr#Compile Error//C++231.9kb2023-12-30 09:00:092023-12-30 09:00:09

Judging History

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

  • [2023-12-30 09:00:09]
  • 评测
  • [2023-12-30 09:00:09]
  • 提交

answer

# include <bits/stdc++.h>
using namespace std;
# define ll long long
# define ull unsigned long long
# define rep(i, f, t, ...) for (int i = f, ##__VA_ARGS__; i <= t; ++i)
# define red(i, f, t, ...) for (int i = f, ##__VA_ARGS__; i >= t; --i)
# define emb emplace_back
# define pb push_back
# define pii pair<int, int>
# define mkp make_pair 
# define arr3 array<int, 3> 
# define arr4 array<int, 4> 
# define FILEIO(filename) freopen (filename".in", "r", stdin), freopen (filename ".out", "w", stdout)
# define ALL(vc) vc.begin ( ), vc.end ( )
# define N 
template < class T > constexpr static T inf = numeric_limits < T > :: max ( ) / 2;

# ifndef __GEORGEYUCJR_READ__
  # ifdef MACOS
    # include "/Users/yzw/GeorgeYuOI/codes/cpp/georgeyucjr/debug/debug.hpp"
    using namespace georgeyucjr;
  # else
    # define write(...) void(36)
    # define bug(...) void(36)
  # endif
# else
  # warning Do not use debug.hpp.
# endif

bool Mst;


const string ANS[20] = {
"11101111101111101111",
"10110010110010110010",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101101101101101101",
"10110110110110110110",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101101101101101101",
"10110110110110110110",
"11011011011011011011",
"01101101101101101101",
"10110110110110110111",
"10011011011011011001",
"11101001101001101001",
"10111110111110111110",
};

bool Med;

signed main() {
  ios_base :: sync_with_stdio ( false ), cin.tie ( nullptr ), cout.tie (nullptr);
cout << n << " "  << n << endl; for(auto i : ANS) cout << i << endl;
  
# ifdef MACOS
  cerr << "Memory & Time Information : " << endl;
  cerr << "Memory : " << ( ( &Med ) - ( &Mst ) ) * 1. / 1024. / 1024. << "MB" << endl;
  cerr << "Time : " << clock ( ) * 1. / CLOCKS_PER_SEC * 1000. << "ms" << endl;
# endif 
  return 0;
}

Details

answer.code: In function ‘int main()’:
answer.code:60:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
   60 | cout << n << " "  << n << endl; for(auto i : ANS) cout << i << endl;
      |         ^
      |         yn