QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#225368#7521. Find the GapPetroTarnavskyi#Compile Error//C++17129b2023-10-24 16:06:592023-10-24 16:07:00

Judging History

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

  • [2023-10-24 16:07:00]
  • 评测
  • [2023-10-24 16:06:59]
  • 提交

answer

#include <iostream>
#include <set>
#include <map>

int main()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	return 0;
}

Details

answer.code: In function ‘int main()’:
answer.code:7:9: error: ‘ios’ has not been declared
    7 |         ios::sync_with_stdio(0);
      |         ^~~
answer.code:8:9: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
    8 |         cin.tie(0);
      |         ^~~
      |         std::cin
In file included from answer.code:1:
/usr/include/c++/11/iostream:60:18: note: ‘std::cin’ declared here
   60 |   extern istream cin;           /// Linked to standard input
      |                  ^~~