// CSE 333 Su12 Lecture 10 demo: brokenpassbyreference.cc
// Gribble/Perkins

// Interaction of const and reference parameters

#include <iostream>
#include <cstdlib>

void BrokenPrintSquare(const int &i) {
  i = i*i;  // Compiler error here.
  std::cout << i << std::endl;
}

int main(int argc, char **argv) {
  int j = 2;

  BrokenPrintSquare(j);
  return EXIT_SUCCESS;
}