QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#627362#9449. New School TermGuanYunchangCompile Error//C++173.7kb2024-10-10 15:39:342024-10-10 15:39:34

Details

answer.code:89:19: error: stray ‘#’ in program
   89 |         n=read(),m#include<iostream>
      |                   ^
answer.code: In function ‘int main()’:
answer.code:89:19: error: expected ‘;’ before ‘include’
   89 |         n=read(),m#include<iostream>
      |                   ^~~~~~~~
      |                   ;
answer.code:96:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   96 | int read()
      |         ^~
answer.code:96:9: note: remove parentheses to default-initialize a variable
   96 | int read()
      |         ^~
      |         --
answer.code:96:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:97:1: error: a function-definition is not allowed here before ‘{’ token
   97 | {
      | ^
answer.code:105:1: error: a function-definition is not allowed here before ‘{’ token
  105 | {
      | ^
answer.code:110:1: error: a function-definition is not allowed here before ‘{’ token
  110 | {
      | ^
answer.code:122:1: error: a function-definition is not allowed here before ‘{’ token
  122 | {
      | ^
answer.code:127:1: error: a function-definition is not allowed here before ‘{’ token
  127 | {
      | ^
answer.code:132:1: error: a function-definition is not allowed here before ‘{’ token
  132 | {
      | ^
answer.code:137:1: error: a function-definition is not allowed here before ‘{’ token
  137 | {
      | ^
answer.code:154:1: error: a function-definition is not allowed here before ‘{’ token
  154 | {
      | ^
answer.code:164:1: error: a function-definition is not allowed here before ‘{’ token
  164 | {
      | ^
answer.code:175:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
  175 | int main()
      |         ^~
answer.code:175:9: note: remove parentheses to default-initialize a variable
  175 | int main()
      |         ^~
      |         --
answer.code:175:9: note: or replace parentheses with braces to value-initialize a variable
answer.code:176:1: error: a function-definition is not allowed here before ‘{’ token
  176 | {
      | ^
answer.code:189:1: error: expected primary-expression before ‘=’ token
  189 | =read(),dp[0]=1;
      | ^