Submission #312589

#TimeUsernameProblemLanguageResultExecution timeMemory
312589sofapudenBali Sculptures (APIO15_sculpture)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; int main(){ int n, a, b; cin >> n >> a >> b; if(a == 1){ ll sum = 0; for(int i = 0; i < n; ++i){ int tm; cin >> tm; sum+=tm; } cout << sum << "\n"; } }

Compilation message (stderr)

sculpture.cpp: In function 'int main()':
sculpture.cpp:8:3: error: 'll' was not declared in this scope
    8 |   ll sum = 0;
      |   ^~
sculpture.cpp:11:4: error: 'sum' was not declared in this scope
   11 |    sum+=tm;
      |    ^~~
sculpture.cpp:13:11: error: 'sum' was not declared in this scope
   13 |   cout << sum << "\n";
      |           ^~~