#include "stdafx.h"#include <iostream>
using namespace System;
int main(){ int m[]={1,2,3,1,2,3}; for(int i=0;i<sizeof m;i++) { bool found = 0; for(int j=0;j<sizeof m;j++) { if(i==j) continue; if(m[i]==abs(m[j])) {found=1;break;} } if(!found){Console::WriteLine(L"Неверно");return 0;}
}
Console::WriteLine(L"Верно"); return 0;}
#include "stdafx.h"
#include <iostream>
using namespace System;
int main()
{
int m[]={1,2,3,1,2,3};
for(int i=0;i<sizeof m;i++)
{
bool found = 0;
for(int j=0;j<sizeof m;j++)
{
if(i==j) continue;
if(m[i]==abs(m[j])) {found=1;break;}
}
if(!found){Console::WriteLine(L"Неверно");return 0;}
}
Console::WriteLine(L"Верно");
return 0;
}