Submission #9837

#TimeUsernameProblemLanguageResultExecution timeMemory
9837effservUniting (kriii2_U)C++98
Compilation error
0 ms0 KiB
#include <cstdio> using namespace std; typedef long long ll; int main() { int N; scanf_s("%d", &N); ll a; scanf_s("%lld", &a); ll A = (ll)a; ll C = 0; for (int i = 0; i < N - 1; i++) { scanf_s("%lld", &a); C += A*a; A += a; } printf("%lld\n0", C); return 0; }

Compilation message (stderr)

U.cpp: In function 'int main()':
U.cpp:10:18: error: 'scanf_s' was not declared in this scope