Submission #1078341

# Submission time Handle Problem Language Result Execution time Memory
1078341 2024-08-27T15:37:45 Z kilikuma Duathlon (APIO18_duathlon) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>

using namespace std;

int main() {
	ios_base::sync_with_stdio(0):
	cin.tie(0):
	cout.tie(0);

	int n; cin >> n;

	cout << ((n * (n - 1) * (n - 2)) / 6) * 2 << '\n'; 

}

Compilation message

count_triplets.cpp: In function 'int main()':
count_triplets.cpp:6:30: error: expected ';' before ':' token
    6 |  ios_base::sync_with_stdio(0):
      |                              ^
      |                              ;