#include
using namespace std;
int main(){
int N,i,k,sum;
sum=0;
cin>>N;
for(i=0;i{
cin>>k;
sum += k;
}
cout<<sum;<br>return 0;}
2.
#include
using namespace std;
int main(){
int N,i,k,number;
k=0;
cin>>N;
for(i=0;i cin>>number;
if(number == 0){
k+=1;
}
}
cout<<k; <br>return 0;
}
3.#include
using namespace std;
int main(){
int N,i,number;
int poz,neg,zero;
poz = 0; neg = 0; zero = 0;
cin>>N;
for(i=0;i cin>>number;
if(number == 0){
zero+=1;
}else if(number > 0){
poz+=1;
}else{
neg+=1;
}
}
cout<<"Poz: "<<poz<<endl; cout<<"Neg: "<<neg<<endl; cout<<"Zero: "<<zero<<endl; <br>return 0;
}