Search found 3 matches
- Mon May 18, 2015 10:02 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10789 - Prime Frequency
- Replies: 38
- Views: 27561
Re: 10789 - Prime Frequency
ignore the cout statement.
- Mon May 18, 2015 9:58 pm
- Forum: Volume 107 (10700-10799)
- Topic: 10789 - Prime Frequency
- Replies: 38
- Views: 27561
Re: 10789 - Prime Frequency
#10789 - Prime Frequency getting Run time error. I am stuck.It works fine for me.
#include<iostream>
using namespace std;
#include<string>
#include <algorithm>
int prime(int*);
int compareints (const void * , const void * );
int main()
{
char num[10];
char a[26];
char A[26];
string s;
int ...
#include<iostream>
using namespace std;
#include<string>
#include <algorithm>
int prime(int*);
int compareints (const void * , const void * );
int main()
{
char num[10];
char a[26];
char A[26];
string s;
int ...
- Sun May 03, 2015 7:47 am
- Forum: Volume 6 (600-699)
- Topic: 673 - Parentheses Balance
- Replies: 243
- Views: 79451
Re: 673 - Parentheses Balance ?WA?
#include<iostream>
#include<string>
#include<stack>
using namespace std;
int main()
{
int n;
cin>>n;
getchar();
int i=0;
while(i<n)
{
stack<char>st;
string str,news;
getline(cin,str);
for(int j=0;j<str.length();j++)
{
if(str[j]==' ')
{
continue;
}
else
{
news+=str[j ...
#include<string>
#include<stack>
using namespace std;
int main()
{
int n;
cin>>n;
getchar();
int i=0;
while(i<n)
{
stack<char>st;
string str,news;
getline(cin,str);
for(int j=0;j<str.length();j++)
{
if(str[j]==' ')
{
continue;
}
else
{
news+=str[j ...