Submission #431249

#TimeUsernameProblemLanguageResultExecution timeMemory
431249faresbasbsFortune Telling 2 (JOI14_fortune_telling2)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#pragma GCC target ("Ofast")
#pragma GCC target ("avx2")
using namespace std;
int n,k,a[40001],b[40001];

int main(){
	cin >> n >> k;
	for(int i = 1 ; i <= n ; i += 1){
		cin >> a[i] >> b[i];
	}
	for(int i = 1 ; i <= k ; i += 1){
		int f;
		cin >> f;
		for(int j = 1 ; j <= n ; j += 1){
			if(a[j] <= f){
				swap(a[j],b[j]);
			}
		}
	}
	long long ans = 0;
	for(int i = 1 ; i <= n ; i += 1){
		ans += a[i];
	}
	cout << ans << endl;
}

Compilation message (stderr)

cc1plus: error: attribute 'Ofast' argument 'target' is unknown