Skip to content

Instantly share code, notes, and snippets.

Created August 26, 2013 08:24
Show Gist options
  • Save anonymous/6339186 to your computer and use it in GitHub Desktop.
Save anonymous/6339186 to your computer and use it in GitHub Desktop.
const LENN = 6
const LENM = 6
proc dw(s: var array[0..LENN,float], t: var array[0..LENN,float] , w: var int):float =
type
adtw = array[0..LENN,array[0..LENM,float]]
var cost = 0.0
#var adtw : _adtw
w = max(w, abs(LENN-LENM))
for i in 0..LENN-1:
for j in 0..LENM-1:
adtw[i][j] = 4.3e37 #<-- Error: type expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment