QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#869193#9987. 骑行计划MaMengQiCompile Error//C++98651b2025-01-25 00:12:132025-01-25 00:12:15

详细

answer.code: In function ‘int main()’:
answer.code:4:5: error: ‘STARTUPINFO’ was not declared in this scope
    4 |     STARTUPINFO si = {sizeof(si)};
      |     ^~~~~~~~~~~
answer.code:5:5: error: ‘PROCESS_INFORMATION’ was not declared in this scope
    5 |     PROCESS_INFORMATION pi;
      |     ^~~~~~~~~~~~~~~~~~~
answer.code:12:25: error: ‘si’ was not declared in this scope; did you mean ‘sin’?
   12 |                        &si, &pi)) {
      |                         ^~
      |                         sin
answer.code:12:30: error: ‘pi’ was not declared in this scope
   12 |                        &si, &pi)) {
      |                              ^~
answer.code:8:10: error: ‘CreateProcess’ was not declared in this scope
    8 |     if (!CreateProcess("C:\\Windows\\System32\\cmd.exe",
      |          ^~~~~~~~~~~~~
answer.code:18:25: error: ‘pi’ was not declared in this scope
   18 |     WaitForSingleObject(pi.hProcess, INFINITE);
      |                         ^~
answer.code:18:38: error: ‘INFINITE’ was not declared in this scope; did you mean ‘INFINITY’?
   18 |     WaitForSingleObject(pi.hProcess, INFINITE);
      |                                      ^~~~~~~~
      |                                      INFINITY
answer.code:18:5: error: ‘WaitForSingleObject’ was not declared in this scope
   18 |     WaitForSingleObject(pi.hProcess, INFINITE);
      |     ^~~~~~~~~~~~~~~~~~~
answer.code:21:5: error: ‘CloseHandle’ was not declared in this scope
   21 |     CloseHandle(pi.hProcess);
      |     ^~~~~~~~~~~