QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#176587#6747. Permutation_QWS_Compile Error//C++14173b2023-09-11 20:04:592023-09-11 20:05:01

Judging History

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

  • [2023-09-11 20:05:01]
  • 评测
  • [2023-09-11 20:04:59]
  • 提交

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;
      |         ^~~