/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1300 儿子游戏机
语言
C++
递交时间
2022-01-03 19:57:52
评测时间
2022-01-03 19:57:52
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes