/ Vijos /

记录详情

Compile Error

foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include
         ^
foo.cc: In function 'int main()':
foo.cc:37:1: error: 'scanf' was not declared in this scope
 scanf("%d %d",&max,&tishu);
 ^~~~~
foo.cc:41:9: error: 'imax' was not declared in this scope
 for(i=0;imax)
         ^~~~
foo.cc:41:9: note: suggested alternative: 'max'
 for(i=0;imax)
         ^~~~
         max
foo.cc:41:13: error: expected ';' before ')' token
 for(i=0;imax)
             ^
foo.cc:53:6: error: expected primary-expression before ':' token
 for(;:wink:
      ^
foo.cc:53:6: error: expected ';' before ':' token
foo.cc:53:6: error: expected primary-expression before ':' token
foo.cc:53:6: error: expected ')' before ':' token
foo.cc:53:6: error: expected primary-expression before ':' token
foo.cc:93:1: error: 'else' without a previous 'if'
 else break;
 ^~~~
foo.cc:93:6: error: break statement not within loop or switch
 else break;
      ^~~~~
foo.cc: At global scope:
foo.cc:99:7: error: expected constructor, destructor, or type conversion before '(' token
 printf("%d",(int)(1000.0/tishu*right));
       ^
foo.cc:101:1: error: expected unqualified-id before 'return'
 return 0;
 ^~~~~~
foo.cc:103:1: error: expected declaration before '}' token
 }
 ^
自豪的采用HydroJudge(https://github.com/hydro-dev/Hydro)进行评测。

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2021-03-26 21:41:14
评测时间
2021-03-26 21:41:14
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes