/ Vijos /

记录详情

Compile Error

foo.cc:10:22: error: stray '\357' in program
 vector<long long> vec(N);
                      ^
foo.cc:10:23: error: stray '\274' in program
 vector<long long> vec(N);
                       ^
foo.cc:10:24: error: stray '\210' in program
 vector<long long> vec(N);
                        ^
foo.cc:10:26: error: stray '\357' in program
 vector<long long> vec(N);
                          ^
foo.cc:10:27: error: stray '\274' in program
 vector<long long> vec(N);
                           ^
foo.cc:10:28: error: stray '\211' in program
 vector<long long> vec(N);
                            ^
foo.cc:10:25: error: expected initializer before 'N'
 vector<long long> vec(N);
                         ^
foo.cc: In function 'int main()':
foo.cc:18:3: error: 'vec' was not declared in this scope
   vec[l].push_back(r);
   ^~~
foo.cc:18:3: note: suggested alternative: 'getc'
   vec[l].push_back(r);
   ^~~
   getc
foo.cc:21:6: error: 'vec' was not declared in this scope
   if(vec[i].size()==0)continue;
      ^~~
foo.cc:21:6: note: suggested alternative: 'getc'
   if(vec[i].size()==0)continue;
      ^~~
      getc
foo.cc:22:8: error: 'vec' was not declared in this scope
   sort(vec[i].begin(),vec[i].end());
        ^~~
foo.cc:22:8: note: suggested alternative: 'getc'
   sort(vec[i].begin(),vec[i].end());
        ^~~
        getc
foo.cc:25:6: error: 'vec' was not declared in this scope
   if(vec[i].size()==0)continue;
      ^~~
foo.cc:25:6: note: suggested alternative: 'getc'
   if(vec[i].size()==0)continue;
      ^~~
      getc
foo.cc:33:24: error: 'vec' was not declared in this scope
   for(long long j=0;j<=vec[i].size()-1;j++){
                        ^~~
foo.cc:33:24: note: suggested alternative: 'getc'
   for(long long j=0;j<=vec[i].size()-1;j++){
                        ^~~
                        getc
foo.cc:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      while(((L-i+1)+1)/2<q.size()){
            ~~~~~~~~~~~~~^~~~~~~~~
foo.cc:52:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      while(((L-i+1)+1)/2>q.size()){
            ~~~~~~~~~~~~~^~~~~~~~~
foo.cc:13:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%lld%lld",&n,&m);
  ~~~~~^~~~~~~~~~~~~~~~~~
foo.cc:14:34: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(long long i=1;i<=n;i++)scanf("%lld",&a[i]);
                             ~~~~~^~~~~~~~~~~~~~
foo.cc:17:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%lld%lld",&l,&r);
   ~~~~~^~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1459 车展
语言
C++
递交时间
2021-10-25 19:21:19
评测时间
2021-10-25 19:21:19
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes