Submission #1078341

#TimeUsernameProblemLanguageResultExecution timeMemory
1078341kilikumaDuathlon (APIO18_duathlon)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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