QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#104831#2920. Ultimate Binary WatchZhaoZiLongCompile Error//C++988.1kb2023-05-12 02:30:262023-05-12 02:30:30

详细

answer.code:265:30: warning: non-static data member initializers only available with ‘-std=c++11’ or ‘-std=gnu++11’
  265 |                 node* root = nullptr;
      |                              ^~~~~~~
answer.code:265:30: error: ‘nullptr’ was not declared in this scope
answer.code: In member function ‘void BST::Push(int)’:
answer.code:271:60: error: ‘nullptr’ was not declared in this scope
  271 |                         new_node->Left = new_node->Right = nullptr;
      |                                                            ^~~~~~~
answer.code: In member function ‘int BST::getMax()’:
answer.code:306:55: error: ‘nullptr’ was not declared in this scope
  306 |                         while (current_node->Right != nullptr)
      |                                                       ^~~~~~~
answer.code: In member function ‘int BST::getMin()’:
answer.code:315:54: error: ‘nullptr’ was not declared in this scope
  315 |                         while (current_node->Left != nullptr)
      |                                                      ^~~~~~~
answer.code: In function ‘void solve()’:
answer.code:330:21: error: ‘stoi’ was not declared in this scope; did you mean ‘atoi’?
  330 |         ll Number = stoi(Digit);
      |                     ^~~~
      |                     atoi