Submission #524471

#TimeUsernameProblemLanguageResultExecution timeMemory
524471maks007Table Tennis (info1cup20_tabletennis)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #define break_it (1/0) int main(void) { ios::sync_with_stdio(0); cin.tie(0); int n, k; cin >> n >> k; vector <int> a(n+k); for(int i = 0; i < n + k; i ++) cin >> a[i]; function <int(vector <int>)> check=[&](vector <int> s) { for(int i = 0; i < n; i ++) { int j = i + 1; if(j >= n or n - i - 1 < 0 or n - j - 1 < 0) break; if(s[i] + s[n-i-1] == s[j]+s[n-j-1]) continue; return 0; } return 1; }; for(int i = 0; i < n + k; i ++) { for(int l = i+1; l < n + k; l ++){ vector <int> v; for(int j = 0; j < n + k; j ++) { if(i == j or j == l) continue; v.push_back(a[j]); } if(check(v)){ for(auto i : v) cout << i << " "; return false; } } } cout << (int)m/0; return false; }

Compilation message (stderr)

tabletennis.cpp: In function 'int main()':
tabletennis.cpp:35:17: error: 'm' was not declared in this scope
   35 |    cout << (int)m/0;
      |                 ^