I cant get with part of it is wrong, i want to sum every row, too.
Code:
// Color Number.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<conio.h>
#include<iostream>
#include <stdlib.h>
#include <string.h>
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	int k,sum;
	cout
...