QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#398000#6747. PermutationmaxminCompile Error//C++17170b2024-04-24 21:05:102024-04-24 21:05:14

Judging History

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

  • [2024-04-24 21:05:14]
  • 评测
  • [2024-04-24 21:05:10]
  • 提交

answer

#include<bits/stdc++.h>
using namespace std;
#define endl '\n'
int main(){
	int n;
	cin>>n;
	for(int i=1;i<=n;i++){
		cout<<i<<" ";
	}
	cout<<endl;
	return ;
}

Details

answer.code: In function ‘int main()’:
answer.code:11:9: error: return-statement with no value, in function returning ‘int’ [-fpermissive]
   11 |         return ;
      |         ^~~~~~