Submission #448470

# Submission time Handle Problem Language Result Execution time Memory
448470 2021-07-30T08:52:59 Z fuad27 Ice Hockey World Championship (CEOI15_bobek) C++14
Compilation error
0 ms 0 KB
n, m = map(int, input().split())
arr = [int(i) for i in input().split()]
c = 0

for b in range(1<<n):
	s = 0
	for i in range(n):
		if b&(1<<i): s+=arr[i]
		if s > m: break
	if s <= m:c+=1
print(c)

Compilation message

bobek.cpp:1:1: error: 'n' does not name a type
    1 | n, m = map(int, input().split())
      | ^