/ Vijos /

记录详情

Compile Error

foo.cc: In function ‘int js1(int, int)’:
foo.cc:46:19: error: a function-definition is not allowed here before ‘{’ token
   46 | bool kuohao(int x){
      |                   ^
foo.cc:56:26: error: a function-definition is not allowed here before ‘{’ token
   56 | int js(int x,int b,int e){
      |                          ^
foo.cc:89:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   89 | int main()
      |         ^~
foo.cc:89:9: note: remove parentheses to default-initialize a variable
   89 | int main()
      |         ^~
      |         --
foo.cc:89:9: note: or replace parentheses with braces to value-initialize a variable
foo.cc:90:1: error: a function-definition is not allowed here before ‘{’ token
   90 | {
      | ^
foo.cc:136:2: error: expected ‘}’ at end of input
  136 | }
      |  ^
foo.cc:14:21: note: to match this ‘{’
   14 | int js1(int b,int e){
      |                     ^
foo.cc:136:2: warning: control reaches end of non-void function [-Wreturn-type]
  136 | }
      |  ^
正在同步测试数据,请稍后

信息

递交者
类型
递交
题目
P1003 等价表达式
语言
C++
递交时间
2024-07-01 20:24:21
评测时间
2024-07-01 20:24:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes