Find Jobs
Hire Freelancers

Solve a C++ task

$10-30 USD

종료됨
게시됨 약 4년 전

$10-30 USD

제출할때 지불됩니다
I want to know why these c++ code is not returning the required output? #include <iostream> using namespace std; char matrix[100][100]; int main() { int n,i,j; cin>>n; for(i=0;i<n;i++){ for(j=0;j<n;j++) { cin>>matrix[i][j]; } } int cycle = 1; for(i = 0; i<n && cycle == 1;i++) { for(j = 0; j<n && cycle == 1; j++) { if(i == j) { if(matrix[i][j] == '1') { cycle = 0; break; } } if(matrix[i][j] == '1' && matrix[j][i] != '1') { cycle = 0; break; } } } cout<<cycle; return 0; /* 011 // 101 110 0110000 1010000 1100000 0000101 0001010 0000101 0001010 0100001 1010000 0101000 0010100 0001010 0000101 1000010 */ } This was the question. I finish coding but it simply does not return the desired output: Cycles Is a graph denoted by the adjacency matrix a cycle graph? Input In the first line: a number of next lines. In a line (expect the first): a number of vertices and after space an adjacency matrix written from the left to the right and from the top to the bottom. Output 1 if a graph is a cycle, 0 else. Example Input 5 3 011101110 7 0110000101000011000000000101000101000001010001010 7 0100001101000001010000010100000101000001011000010 5 0101010000000011000000100 5 0100110010000110110010100 Output 1 0 1 0 1
프로젝트 ID: 24053381

프로젝트 정보

30 제안서
원격근무 프로젝트
활동 중 4년 전

돈을 좀 벌 생각이십니까?

프리랜서 입찰의 이점

예산 및 기간 설정
작업 결과에 대한 급여 수급
제안의 개요를 자세히 쓰세요
무료로 프로젝트에 신청하고 입찰할 수 있습니다
30 이 프로젝트에 프리랜서들의 평균 입찰은 $27 USD입니다.
사용자 아바타
Hi there, I do C programming and have good command in data structures and algorithms. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details.
$30 USD 1일에
5.0 (867 건의 리뷰)
7.5
7.5
사용자 아바타
My Degree is MS Computer Software Engineering. I teach Data structure and Algorithm. I have Excellent concepts linked lists, pointers, Trees, Binary Trees, stack and queues, FIFO, LIFO, recursion Graphs, Complexity analysis and Hashing. My programming expertise are C, C++, Java, C# and matlab. I can show you some of my previous work related to Data Structure and Algorithm. Please see my profile and reviews as well. Thanks
$30 USD 1일에
4.9 (172 건의 리뷰)
7.1
7.1
사용자 아바타
I am very proficient in c and c++. I have 18 years c++ developing experience now, and have worked for more than 7 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$40 USD 1일에
4.9 (125 건의 리뷰)
7.0
7.0
사용자 아바타
Hi I can deliver you the fix code for the given output. Kindly contact to discuss more about the project. Thank you
$30 USD 1일에
4.9 (67 건의 리뷰)
6.0
6.0
사용자 아바타
Hello, I have 25 years experience programming in C++. Your program isn't testing for a cycle. I will create a C++ program that identifies a cycle graph. A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$84 USD 7일에
4.9 (177 건의 리뷰)
6.1
6.1
사용자 아바타
Hi, I am well versed with C++ programming and various concepts like OOP, inheritance, encapsulations, classes, methods, constructors, arrays, console applications , string handling, file manipulations, linked lists (like Stacks,Queue) etc. I have more than 15 years of working experience to my credit. I will be happy to answer any queries that you may have. Looking forward to your response. Thanks
$25 USD 1일에
4.9 (124 건의 리뷰)
5.8
5.8
사용자 아바타
I, Jignesh Lakhani completed my masters from IIT Roorkee in Computer Engineering. I am having a very good knowledge of C, C++, Java, JavaFX, Algorithm and Data Structure. I am having strong analytical power. I will complete your project before the deadline. I am looking forward to discussing with you this job post. Please feel free to contact me. Respectfully, Jignesh
$30 USD 1일에
5.0 (41 건의 리뷰)
5.9
5.9
사용자 아바타
Thank you for your posting job. I read your project description and I'm very interested in this project. As you can see via my profile, I have expertise skills to build C#& C++. If you hire me for this project, you will have a chance to get to know another talent and trustworthy. I hope to work with you, sincerely.
$80 USD 1일에
4.7 (19 건의 리뷰)
5.1
5.1
사용자 아바타
hi, please dont share code like that. i can fix your code anyway. let me know if you are interested. thanks in advance.
$20 USD 1일에
4.8 (33 건의 리뷰)
4.5
4.5
사용자 아바타
i can help.........................................................................................................................
$20 USD 7일에
4.9 (19 건의 리뷰)
4.4
4.4
사용자 아바타
Hi, There. I have plenty of experience in C++, Algorithms. I can help you with this task. Have a chat about the task. I shall be glad to help you out.
$25 USD 7일에
5.0 (9 건의 리뷰)
3.4
3.4
사용자 아바타
Hello Sir/Madam I am doing computer programming and development work since many years. I have practical knowledge of various programming langauges including Java Technologies, C#, C/C++, PHP, Node, Android, Python, JavaScript, Scala, Vb.Net, XML and various frameworks. I can help implement awesome desktop (Java, Python, C#, Vb.net, C++), Web (JEE, Spring, Phy, Python, Asp.net) and Android (Java, Kotlin) application. Contact me with details to get started. I assure you an excellent solution of your project within the time frame, reasonable budget and exactly according to the requirements. Please contact with details. Thanks @CodingHelpLine
$20 USD 1일에
4.9 (3 건의 리뷰)
2.3
2.3
사용자 아바타
Hi, we are experienced in C language tasks. we can make it edit and we will also send you brief so that you can understand everything also. regards, Muhammad Faraz Khan AcademicsAssistant Team
$30 USD 1일에
5.0 (1 건의 리뷰)
1.9
1.9
사용자 아바타
I have been a competitive programmer for more than 5 years. I have a big experience in algorithms and data structures. Mostly I've been coding on C++ this whole time so I think I can help you.
$30 USD 7일에
5.0 (2 건의 리뷰)
2.0
2.0
사용자 아바타
Greetings Sir, I am Muhammad Faisal and i am a professional C++ Developer having almost 4 years of professional experience and we provide you quality work within your budget and time duration so, lets get started : Thanks
$20 USD 1일에
4.7 (10 건의 리뷰)
2.2
2.2
사용자 아바타
I am doing Software Engineering ,Having 2 years experience especially in programming (i.e. Java,C#,C++,C,Python),Code Debugging, Database connections, App development and much more.
$15 USD 1일에
5.0 (1 건의 리뷰)
0.4
0.4
사용자 아바타
I'm software engineer having 3 years experience in software development field and I just check the c++ program and I can easily do it for if you are interested then let me know. Thanks.
$20 USD 7일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hi there, I have seen your code. I'll fix this code in 30 mins max to generate the desired output. Please let me know if you are interested.
$20 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
Hi, I have gone through the program. There are a few syntax and logic errors in the code you have written. I will debug and fix it for you. I will provide you with the detailed documentation of the changes to be done to get the desired output and the reason for the changes. I will give you detailed comments in the code to help you understand the code too.
$10 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0
사용자 아바타
I have made too many projects on C++ which includes automation projects etc. I can easily debug the issues in c++ Relevant Skills and Experience C++ programming
$25 USD 1일에
0.0 (0 건의 리뷰)
0.0
0.0

고객에 대한 정보

국기 (POLAND)
Warsaw, Poland
0.0
0
2월 23, 2020부터 회원입니다

고객 확인

감사합니다! 무료 크레딧을 신청할 수 있는 링크를 이메일로 보내드렸습니다.
이메일을 보내는 동안 문제가 발생했습니다. 다시 시도해 주세요.
등록 사용자 전체 등록 건수(일자리)
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
미리 보기 화면을 준비 중...
위치 정보 관련 접근권이 허용되었습니다.
고객님의 로그인 세션이 만료되어, 자동으로 로그아웃 처리가 되었습니다. 다시 로그인하여 주십시오.