记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:11:2: error: 'map' was not declared in this scope
  map<int ,PII> cnt_1,cnt_2;
  ^~~
/in/foo.cc:11:6: error: expected primary-expression before 'int'
  map<int ,PII> cnt_1,cnt_2;
      ^~~
/in/foo.cc:19:13: error: 'cnt_1' was not declared in this scope
    if(x==1) cnt_1[cnt++]={i,j};
             ^~~~~
/in/foo.cc:20:18: error: 'cnt_2' was not declared in this scope
    else if(x==2) cnt_2[cnt++]={i,j};
                  ^~~~~
/in/foo.cc:23:6: error: 'cnt_1' was not declared in this scope
  if(!cnt_1.size()||!cnt_2.size()) cout<<-1<<endl;
      ^~~~~
/in/foo.cc:23:21: error: 'cnt_2' was not declared in this scope
  if(!cnt_1.size()||!cnt_2.size()) cout<<-1<<endl;
                     ^~~~~
/in/foo.cc:27:15: error: unable to deduce 'auto&&' from 'cnt_2'
   for(auto t1:cnt_2)
               ^~~~~
/in/foo.cc:30:16: error: unable to deduce 'auto&&' from 'cnt_1'
    for(auto t2:cnt_1)
                ^~~~~

信息

递交者
类型
递交
题目
P1455 3-18 怎么就发不好球
语言
C++
递交时间
2023-07-07 23:38:58
评测时间
2023-07-07 23:38:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes