Hot answers tagged

1 vote
Accepted

cannot compile code

I saw your code and tried to understand it. As Cliff B said you should create the array first, then you can store the values in it. In this case, you haven't initialized the array "scores" ...
1 vote

cannot compile code

The left side of this line is creating an array of floats with "l" elements. The right side is producing a single value. The compiler doesn't know what to do with that. It doesn't know how ...
  • 64.7k
1 vote
Accepted

pset2 - caesar : output is providing extra symbols after specific input cases

The code encrypts the chars from plaintext and stores them in the ciphertext array. But, where is the end of string marker in ciphertext[]? Funny thing about printf() and related functions. They ...
  • 64.7k

Only top scored, non community-wiki answers of a minimum length are eligible