Task: | Loops |
Sender: | david.meichel |
Submission time: | 2018-09-14 13:19:47 +0300 |
Language: | C++ |
Status: | COMPILE ERROR |
Compiler report
input/code.cpp:3:11: error: '::main' must return 'int' long main() { ^
Code
#include <iostream> using namespace std; long main() { long n; cin >> n; cout << n*(n+1)*(n+2)/6 << "\n"; }