I got a WA!
#include <cstdlib>
#include <iostream>
#include <math.h>
#include <cstring>
using namespace std;
int main(int argc, char *argv[])
{
int check=0,x=0;
char n[12],nn[999];
while(cin.getline(n,12)) //n[6]='.',n[0],n[10]='|'
{
int sum=0;
if (n[0]=='_' && check==1) break;
if (n[0 ...
Search found 3 matches
- Fri Oct 13, 2006 12:17 pm
- Forum: Volume 108 (10800-10899)
- Topic: 10878 - Decode the tape
- Replies: 23
- Views: 20109
- Sat Oct 07, 2006 9:52 am
- Forum: Volume 1 (100-199)
- Topic: 190 - Circle Through Three Points
- Replies: 126
- Views: 37267
190,I got a CE
I compile my code with Microsoft C++ and Dev C++, there is no error,
but I got a CE. PLease help me, thanks.
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(int argc, char *argv[])
{
double x1,y1,x2,y2,x3,y3,ox,oy,r,k1,k2,sum;
while(cin ...
but I got a CE. PLease help me, thanks.
#include <cstdlib>
#include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
int main(int argc, char *argv[])
{
double x1,y1,x2,y2,x3,y3,ox,oy,r,k1,k2,sum;
while(cin ...
- Tue Oct 03, 2006 5:01 pm
- Forum: Volume 1 (100-199)
- Topic: 191 - Intersection
- Replies: 103
- Views: 33472
191(Intersectioin),I got WA, but I don't know why.
My code(C++):
#include <iostream.h>
int dd(int,int,int,int,int,int,int,int);
void main()
{
int n,i,x1,y1,x2,y2,sx1,sy1,sx2,sy2,lx,ly,rx,ry;
cin>>n;
for (i=0;i<n;i++)
{
cin>>x1>>y1>>x2>>y2>>sx1>>sy1>>sx2>>sy2;
lx=sx1;ly=sy1;rx=sx2;ry=sy2;
if (lx>rx) {lx=sx2;rx=sx1;}
if (ly<ry) {ly=sy2;ry=sy1;}
int ...
#include <iostream.h>
int dd(int,int,int,int,int,int,int,int);
void main()
{
int n,i,x1,y1,x2,y2,sx1,sy1,sx2,sy2,lx,ly,rx,ry;
cin>>n;
for (i=0;i<n;i++)
{
cin>>x1>>y1>>x2>>y2>>sx1>>sy1>>sx2>>sy2;
lx=sx1;ly=sy1;rx=sx2;ry=sy2;
if (lx>rx) {lx=sx2;rx=sx1;}
if (ly<ry) {ly=sy2;ry=sy1;}
int ...