QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#184551#7104. Halting Problemucup-team1168#Compile Error//C++173.0kb2023-09-20 20:59:572023-09-20 20:59:57

详细

answer.code:10:39: error: stray ‘#’ in program
   10 |         for (int i = 0; i < n; i++) {a#include<bits/stdc++.h>
      |                                       ^
answer.code: In function ‘void run()’:
answer.code:10:39: error: expected ‘;’ before ‘include’
   10 |         for (int i = 0; i < n; i++) {a#include<bits/stdc++.h>
      |                                       ^~~~~~~~
      |                                       ;
answer.code:14:12: error: a function-definition is not allowed here before ‘{’ token
   14 | void run() {
      |            ^
answer.code:102:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  102 | int main() {
      |         ^~
answer.code:102:9: note: remove parentheses to default-initialize a variable
  102 | int main() {
      |         ^~
      |         --
answer.code:102:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:102:12: error: a function-definition is not allowed here before ‘{’ token
  102 | int main() {
      |            ^