Submission #183312
Source Code Expand
#define _CRT_SEURE_NO_WARNINGS #include <iostream> #include <vector> #include <string> #include <map> #include <set> #include <queue> #include <stack> using namespace std; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<string> vs; typedef vector<bool> vb; typedef vector<vb> vvb; typedef pair<int, int> pii; typedef long long ll; typedef unsigned long long ull; #define all(a) (a).begin(),(a).end() #define rall(a) (a).rbegin(), (a).rend() #define pb push_back #define mp make_pair #define loop(i,a,b) for(ull i=(a);i<ull(b);++i) #define rep(i,n) loop(i,0,n) #define iter(i,c) for(auto i=(c).begin(); i!=(c).end(); ++i) #define riter(i,c) for(auto i=(c).rbegin(); i!=(c).rend(); ++i) #define clr(a,i) memset((a), (i) ,sizeof(a)) const double eps = 1e-10; const double pi = acos(-1.0); const double inf = (int)1e8; template<typename T>ostream&operator<<(ostream&os, vector<T>const&v){ iter(it, v) os << *it << (it + 1 == v.end() ? "" : " "); return os; } template<typename T>ostream&operator<<(ostream&os, set<T>const&v){ iter(it, v) os << *it << (it + 1 == v.end() ? "" : " "); return os; } template<typename T, typename U>ostream&operator<<(ostream&os, map<T, U>const&v){ iter(it, v) os << *it << (it + 1 == v.end() ? "" : " "); return os; } template<typename T, typename U>ostream&operator<<(ostream&os, const pair<T, U>&p){ return os << "[" << p.dirst << "," << p.second << "]"; } int main(){ vi a(7), b(7); rep(i, 7) cin >> a[i]; rep(i, 7) cin >> b[i]; int ans = 0; rep(i, 7) ans += max(a[i], b[i]); cout << ans << endl; }
Submission Info
Submission Time | |
---|---|
Task | A - ゴールドラッシュ |
User | tubo28 |
Language | C++11 (GCC 4.8.1) |
Score | 0 |
Code Size | 1651 Byte |
Status | CE |
Compile Error
./Main.cpp:29:28: error: ‘acos’ was not declared in this scope const double pi = acos(-1.0); ^