/ Vijos /

记录详情

Compile Error

foo.cc:62:4: error: stray '\357' in program
  if(rand()%2==0)cout<<18<<endl;
    ^
foo.cc:62:5: error: stray '\274' in program
  if(rand()%2==0)cout<<18<<endl;
     ^
foo.cc:62:6: error: stray '\210' in program
  if(rand()%2==0)cout<<18<<endl;
      ^
foo.cc:62:18: error: stray '\357' in program
  if(rand()%2==0)cout<<18<<endl;
                  ^
foo.cc:62:19: error: stray '\274' in program
  if(rand()%2==0)cout<<18<<endl;
                   ^
foo.cc:62:20: error: stray '\211' in program
  if(rand()%2==0)cout<<18<<endl;
                    ^
foo.cc: In function 'int main()':
foo.cc:62:7: error: expected '(' before 'rand'
  if(rand()%2==0)cout<<18<<endl;
       ^~~~
foo.cc:63:2: error: 'else' without a previous 'if'
  else
  ^~~~
foo.cc: In function 'int get_pos(const int*, int, int)':
foo.cc:20:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
foo.cc: In function 'void P()':
foo.cc:47:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d",&num);
     ~~~~~^~~~~~~~~~~
foo.cc:50:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&data1[i]);
         ~~~~~^~~~~~~~~~~~~~~~
foo.cc:54:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
         scanf("%d",&data2[i]);
         ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1842 火柴排队
语言
C++
递交时间
2021-10-15 21:26:36
评测时间
2021-10-15 21:26:36
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes