QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#398000 | #6747. Permutation | maxmin | Compile Error | / | / | C++17 | 170b | 2024-04-24 21:05:10 | 2024-04-24 21:05:14 |
Judging History
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 ; | ^~~~~~