답안 #588768

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
588768 2022-07-04T04:22:05 Z Tekor Broken Device 2 (JOI22_device2) C++17
컴파일 오류
0 ms 0 KB
#include "Anna.h"
#include <utility>
#include <vector>

namespace {

int variable_example = 0;

}
#include <bits/stdc++.h>
using namespace std;
#define pb push_back
int Declare() {
  variable_example++;
  return 2000;
}

std::pair<std::vector<int>, std::vector<int> > Anna(long long A) {
	vector <int> a,b;
	for(int i = 1;i <= A;i++)a.pb(1);
	for(int i = 1;i <= A;i++)b.pb(0);
	return mp(a,b);
}
#include "Bruno.h"
#include <utility>
#include <vector>

namespace {

int variable_example = 0;

}
#include <bits/stdc++.h>
using namespace std;
#define ll long long
long long Bruno(std::vector<int> u) {
	return (ll)u.size();
}

Compilation message

Anna.cpp: In function 'std::pair<std::vector<int>, std::vector<int> > Anna(long long int)':
Anna.cpp:22:9: error: 'mp' was not declared in this scope
   22 |  return mp(a,b);
      |         ^~

Bruno.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~