QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#372417#6747. PermutationQian#Compile Error//C++14417b2024-03-31 13:13:522024-03-31 13:13:53

Judging History

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

  • [2024-03-31 13:13:53]
  • 评测
  • [2024-03-31 13:13:52]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (int i = a; i <= b; i++)
#define pii pair<int, int>

const int N = 1e6 + 10;
int n, a[N],b[N];
int sum[N];
void solve()
{
	ll n;
	cin >> n;
	for(int i = 1; i <= n; i++)
	{
		cout << i << " ";
	}
}

signed main()
{
	ios::sync_with_stdio(false);
	cin.tie(0);cout.tie(0);
	int _ = 1;
	while (_--)
		solve();
    return 0;
}

Details

answer.code: In function ‘void solve()’:
answer.code:11:9: error: ‘ll’ was not declared in this scope
   11 |         ll n;
      |         ^~