QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#176587 | #6747. Permutation | _QWS_ | Compile Error | / | / | C++14 | 173b | 2023-09-11 20:04:59 | 2023-09-11 20:05:01 |
Judging History
answer
#include <bits/stdc++.h>
#define ios::sync_with_stdio(0),cin.tie(0)
using namespace std;
int main(){
ios;
int n;
cin>>n;
for(int i=n;i>=1;i--)cout<<i<<" ";
}
Details
answer.code:2:9: warning: ISO C++11 requires whitespace after the macro name 2 | #define ios::sync_with_stdio(0),cin.tie(0) | ^~~ answer.code: In function ‘int main()’: answer.code:2:14: error: ‘::sync_with_stdio’ has not been declared 2 | #define ios::sync_with_stdio(0),cin.tie(0) | ^~~~~~~~~~~~~~~ answer.code:7:9: note: in expansion of macro ‘ios’ 7 | ios; | ^~~