Search found 8 matches
- Mon Sep 29, 2003 2:12 am
- Forum: Volume 101 (10100-10199)
- Topic: 10162 - Last Digit
- Replies: 21
- Views: 10941
still WA
What should be done when your sample input output matches but still I get WA ?
- Mon Sep 29, 2003 1:45 am
- Forum: C++
- Topic: math library
- Replies: 31
- Views: 12493
reply
Thanks for the suggestion though knew it already. It is obvious that if a funciton is overloaded for some types and I am passing a value of other type, then I should type cast. But, I did not ask what I should do when I get this message.
I see that math functions of judge's compiler are overloaded ...
I see that math functions of judge's compiler are overloaded ...
- Sun Sep 28, 2003 12:43 am
- Forum: C++
- Topic: math library
- Replies: 31
- Views: 12493
Politeness!
Well, not only a bit politeness, but also I know the degree of politeness. The way you said -
"If so, then everything is ok and that's the only message you should get. I already wrote why a month or two ago - search and you will find."
-&-
"You haven't read what you're replying to?"
was polite to a ...
"If so, then everything is ok and that's the only message you should get. I already wrote why a month or two ago - search and you will find."
-&-
"You haven't read what you're replying to?"
was polite to a ...
- Sun Sep 28, 2003 12:09 am
- Forum: Volume 101 (10100-10199)
- Topic: 10162 - Last Digit
- Replies: 21
- Views: 10941
why wa ?
Any one help me know why this code gets WA...
[cpp]#include <cstdio>
#include <cstring>
int lastDigitOfMPowN( int m, int n )
{
int ld;
int nmod4;
nmod4 = n % 4;
switch ( m ) {
case 0:
ld = 0;
break;
case 1:
ld = 1;
break;
case 2:
if ( n == 0 ) {
ld = 1;
} else {
switch ( nmod4 ...
[cpp]#include <cstdio>
#include <cstring>
int lastDigitOfMPowN( int m, int n )
{
int ld;
int nmod4;
nmod4 = n % 4;
switch ( m ) {
case 0:
ld = 0;
break;
case 1:
ld = 1;
break;
case 2:
if ( n == 0 ) {
ld = 1;
} else {
switch ( nmod4 ...
- Sat Sep 27, 2003 3:36 am
- Forum: C++
- Topic: math library
- Replies: 31
- Views: 12493
Reply to Duleba
I read that, but it is confusion that whether Duleba a single person or two. That posting contains a compiler error message,
"t.cpp:7: call of overloaded `acos(int)' is ambiguous
/usr/include/math.h:51: candidates are: double acos(double)
/usr/include/c++/3.2/cmath:112: long double std::acos ...
"t.cpp:7: call of overloaded `acos(int)' is ambiguous
/usr/include/math.h:51: candidates are: double acos(double)
/usr/include/c++/3.2/cmath:112: long double std::acos ...
- Fri Sep 26, 2003 1:04 am
- Forum: Volume 100 (10000-10099)
- Topic: 10013 - Super long sums
- Replies: 212
- Views: 68160
10013
In " The Input " section of 10013 - " Each of the two given integers is not less than 1, and the length of their sum does not exceed M ." <-- what does it really mean?
I could get ac long ago if I did not read this line. then this line is surely misleading one.
Problems may be misleading, but ...
I could get ac long ago if I did not read this line. then this line is surely misleading one.
Problems may be misleading, but ...
- Thu Sep 25, 2003 10:57 pm
- Forum: C++
- Topic: math library
- Replies: 31
- Views: 12493
cmath of OJ
I got similar CE at past. OJ gives details of compilers error messages; I checked and found that their compiler found amguity while passing the value to abs( ) or log( ), as these are overloaded for several data types except the one I passed. I can't remember, exactly what was written there.
And ...
And ...
- Wed Sep 24, 2003 10:40 pm
- Forum: C++
- Topic: math library
- Replies: 31
- Views: 12493
math funcitons
I see that math functions of judge's compiler are overloaded ( when I use <cmath> ). Should they be ? As C math functions are inherited as they were, they should not have been overloaded as they were not. I do not also see any specification by TC++PL stroustrup. Then why are they overloaded ?