Task: | Jakkara |
Sender: | |
Submission time: | 2015-07-18 21:29:28 +0300 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.9/README.Bugs> for instructions.
Code
#include <bits/stdc++.h> #define F first #define S second using namespace std; typedef long long ll; int main(){ ios_base::sync_with_stdio(0); cin.tie(0); vector<int> lol(4); for (int i=0;i<4;i++){ cin>>lol[i]; } sort(lol.begin(), lol.end()); ll v=0; for (int i=0;i<4;i++){ v+=(ll)abs(lol[i]-lol[1]); } cout<<v<<endl; }