/ Vijos /

记录详情

Compile Error

foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
foo.cc: In function 'int main()':
foo.cc:37:1: error: 'scanf' was not declared in this scope
   37 | scanf("%d %d",&max,&tishu);
      | ^~~~~
foo.cc:41:9: error: 'imax' was not declared in this scope; did you mean 'max'?
   41 | for(i=0;imax)
      |         ^~~~
      |         max
foo.cc:41:13: error: expected ';' before ')' token
   41 | for(i=0;imax)
      |             ^
      |             ;
foo.cc:53:6: error: expected primary-expression before ':' token
   53 | for(;:wink:
      |      ^
foo.cc:53:6: error: expected ';' before ':' token
   53 | for(;:wink:
      |      ^
      |      ;
foo.cc:53:6: error: expected primary-expression before ':' token
foo.cc:53:6: error: expected ')' before ':' token
   53 | for(;:wink:
      |    ~ ^
      |      )
foo.cc:53:6: error: expected primary-expression before ':' token
foo.cc:93:1: error: 'else' without a previous 'if'
   93 | else break;
      | ^~~~
foo.cc:93:6: error: break statement not within loop or switch
   93 | else break;
      |      ^~~~~
foo.cc: At global scope:
foo.cc:99:7: error: expected constructor, destructor, or type conversion before '(' token
   99 | printf("%d",(int)(1000.0/tishu*right));
      |       ^
foo.cc:101:1: error: expected unqualified-id before 'return'
  101 | return 0;
      | ^~~~~~
foo.cc:103:1: error: expected declaration before '}' token
  103 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2022-07-20 15:08:36
评测时间
2022-07-20 15:08:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes