Submission #312589

# Submission time Handle Problem Language Result Execution time Memory
312589 2020-10-13T20:28:49 Z sofapuden Bali Sculptures (APIO15_sculpture) C++14
Compilation error
0 ms 0 KB
#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

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";
      |           ^~~