python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
My code which is calculating sum and average of two numbers returns this error "[Error] ld returned 1 exit status" upon execution and compilation
This is my code. I've read the output log but can't see where the exact error is; I will appreciate if someone can kindly point me to it. The IDE I'm using is Dev C++.
int main(){
int n, i, a, ave...
Samson Royal
Votes: 0
Answers: 1
does DEVC/DEVC++ IDE not support vectors
#include <bits/stdc++.h>
using namespace std;
int main()
{
vector<int> vect1(10);
int value = 5;
fill(vect1.begin(), vect1.end(), value);
for (int x : vect1)
cout ...

Sarthak Bharadwaj
Votes: 0
Answers: 2
find how many is prime number
I want give array of numberes and find how many of them is prime number,but program give me zero
int Prime_complete(int a[],int len){
int sum=0;
int m,flag;
for(int i=0 ; i<len ; i++){
...

soran-hamid
Votes: 0
Answers: 1