RPN calculator FIXED NO REALLY

Submit

Your name:
File:
Open code-statistics:

Language is selected by the extension of the file. See the list of supported languages to know the extension of your language.

Problem

Make an RPN calculator with the following commands:

+
-
*
/
^
mod

Newline = print out top of stack.

(Apologies to shinh. I am lame.)

Options

exec is denied

now post-mortem time, all source codes will be revealed

Sample input:_

2 2 +
0 /
1 +

Sample output:

4
ERR
5

Sample input:_

5 2 mod
5 * 5 ^
1 2 /
2 *

Sample output:

1
3125
0.5
1

Sample input:_

9.2 0.1 +
5 -
1048 36 +
2 /
3105 220 6 +
+
*
1.2 *
482.3 -

Sample output:

9.3
4.3
1084
542
226
3331
1805402
2166482.4
2166000.1

Ranking

Ruby _

RankUserSizeTimeDateStatistics
1niha930.20722008/02/16 16:16:120B / 59B / 20B
2tabasa2060.10462008/02/09 12:06:258B / 91B / 95B

Perl _

RankUserSizeTimeDateStatistics
1nuko(rand)1020.04622008/02/07 07:43:540B / 62B / 27B
2ais5231490.09702008/02/07 07:14:070B / ?B / ?B

Python _

RankUserSizeTimeDateStatistics
1primo1090.07112010/08/30 11:54:330B / 76B / 33B

PHP _

RankUserSizeTimeDateStatistics
1o-cn1020.02482009/12/14 02:17:170B / ?B / ?B
2pooq1080.41262008/10/07 01:01:070B / 66B / 29B

Common LISP _

RankUserSizeTimeDateStatistics
1kozima(embed)1060.23612008/02/20 12:36:120B / 70B / 23B

Arc _

RankUserSizeTimeDateStatistics
1pooq9510.37832009/10/31 00:22:340B / 66B / 16B

Io _

RankUserSizeTimeDateStatistics
1pooq1082.56842008/06/25 12:17:510B / 76B / 18B

JavaScript _

RankUserSizeTimeDateStatistics
1murky-satyr1140.04212008/05/25 06:17:070B / 80B / 33B
2nn1750.08982008/05/24 21:40:400B / 86B / 87B

Lua _

RankUserSizeTimeDateStatistics
1pooq1160.06662008/11/22 15:46:070B / 68B / 35B

Tcl _

RankUserSizeTimeDateStatistics
1pooq1130.00802009/11/21 05:25:590B / 73B / 21B

Xtal _

RankUserSizeTimeDateStatistics
1pooq1030.07902010/08/23 01:45:480B / 67B / 23B

Icon _

RankUserSizeTimeDateStatistics
1pooq1320.04192012/04/05 19:11:300B / 86B / 42B

Cyan _

RankUserSizeTimeDateStatistics
1pooq14013.28702008/11/09 15:53:260B / 85B / 49B

Smalltalk _

RankUserSizeTimeDateStatistics
1murky-satyr1100.47872008/07/04 00:14:270B / 75B / 21B

Prolog _

RankUserSizeTimeDateStatistics
1pooq1330.11972008/11/23 01:30:080B / 90B / 41B

BASIC _

RankUserSizeTimeDateStatistics
1poop1120.17402008/02/17 22:11:270B / 74B / 20B

Perl6 _

RankUserSizeTimeDateStatistics
1pooq916.53732010/08/10 21:48:020B / 61B / 17B

J _

RankUserSizeTimeDateStatistics
1pooq1080.14192010/08/30 12:55:570B / 67B / 26B
2poop1370.09002008/06/16 19:45:220B / 79B / 32B

K _

RankUserSizeTimeDateStatistics
1pooq880.04632012/03/20 13:13:520B / 56B / 19B

C _

RankUserSizeTimeDateStatistics
151b(embed)1210.07172008/02/09 21:34:150B / 81B / 40B
251b2440.07632008/02/10 06:13:570B / 115B / 126B
3Purika2790.05752008/02/12 03:05:231B / ?B / ?B

OCaml _

RankUserSizeTimeDateStatistics
1m.ukai1260.20202008/04/25 22:52:280B / 82B / 30B

Haskell _

RankUserSizeTimeDateStatistics
1pooq1340.05522009/05/10 13:38:350B / 97B / 31B

Java _

RankUserSizeTimeDateStatistics
1pooq1620.39832010/09/20 12:18:240B / 109B / 51B

Pascal _

RankUserSizeTimeDateStatistics
1pooq1500.08402009/01/19 13:10:550B / 103B / 28B

COBOL _

RankUserSizeTimeDateStatistics
1pooq2500.00112009/11/21 14:01:230B / 193B / 22B

Curry _

RankUserSizeTimeDateStatistics
1pooq1230.03852009/11/10 05:37:380B / 84B / 18B

Maxima _

RankUserSizeTimeDateStatistics
1pooq1080.36832010/08/30 17:19:470B / 68B / 27B

REBOL _

RankUserSizeTimeDateStatistics
1pooq1170.20042009/02/14 23:07:250B / 81B / 20B

Asymptote _

RankUserSizeTimeDateStatistics
1pooq1103.14782009/04/05 20:40:150B / 72B / 24B

AWK _

RankUserSizeTimeDateStatistics
1nn1090.03452008/07/22 12:14:180B / 79B / 30B

sed _

RankUserSizeTimeDateStatistics
1emoken(embed)990.04582008/02/10 21:40:210B / 60B / 23B

wake _

RankUserSizeTimeDateStatistics
1pooq1080.01172010/07/20 16:07:300B / 69B / 36B

Postscript _

RankUserSizeTimeDateStatistics
1yshl(embed)930.63252008/02/10 06:27:509B / 65B / 6B
2yshl(bin)1680.56892008/02/10 07:56:0261B / 53B / 54B
3yshl2540.56222008/02/10 07:56:110B / 173B / 52B

R _

RankUserSizeTimeDateStatistics
1pooq1013.68852008/05/31 20:07:430B / 66B / 22B

gs2 _

RankUserSizeTimeDateStatistics
1whio540.24072017/03/14 05:06:5930B / 17B / 7B

FlogScript _

RankUserSizeTimeDateStatistics
1pooq890.13442010/09/09 20:17:420B / 56B / 20B

Vim _

RankUserSizeTimeDateStatistics
1nn1100.07032009/12/13 22:49:152B / 62B / 44B

Groovy _

RankUserSizeTimeDateStatistics
1murky-satyr11710.82922008/05/29 02:44:050B / 77B / 27B
2nn(embed)12410.77202008/05/27 00:33:090B / 83B / 28B

Scala _

RankUserSizeTimeDateStatistics
1pooq11810.00152011/02/17 12:28:250B / 72B / 33B

Logo _

RankUserSizeTimeDateStatistics
1teebee1002.52622011/03/27 13:56:590B / 69B / 13B
2pooq1002.51182011/03/27 14:12:460B / 69B / 13B

Language Ranking_

RankLangUserSizeScore
1gs2whio5410000
2Kpooq886136
3FlogScriptpooq896067
4Perl6pooq915934
5Postscriptyshl(embed)935806
6Rubyniha935806
7Arcpooq955684
8sedemoken(embed)995454
9Logoteebee1005400
10Rpooq1015346
11Perlnuko(rand)1025294
12PHPo-cn1025294
13Xtalpooq1035242
14Common LISPkozima(embed)1065094
15Iopooq1085000
16wakepooq1085000
17Jpooq1085000
18Maximapooq1085000
19AWKnn1094954
20Pythonprimo1094954
21Smalltalkmurky-satyr1104909
22Asymptotepooq1104909
23Vimnn1104909
24BASICpoop1124821
25Tclpooq1134778
26JavaScriptmurky-satyr1144736
27Luapooq1164655
28Groovymurky-satyr1174615
29REBOLpooq1174615
30Scalapooq1184576
31C51b(embed)1214462
32Currypooq1234390
33OCamlm.ukai1264285
34Iconpooq1324090
35Prologpooq1334060
36Haskellpooq1344029
37Cyanpooq1403857
38Pascalpooq1503600
39Javapooq1623333
40COBOLpooq2502160

return top