We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Bit Manipulation
- XOR Matrix
- Discussions
XOR Matrix
XOR Matrix
Sort by
recency
|
34 Discussions
|
Please Login in order to post a comment
the problem is resolution
using System; using System.Collections.Generic; using System.IO; using System.Linq;
class Solution { static void Main(string[] args) { // Read the input string[] input = Console.ReadLine().Split(' '); int n = int.Parse(input[0]); int m = int.Parse(input[1]);
}
Code does not compile.
Here is XOR matrix problem solution in Python Java c++ and c programming - https://programs.programmingoneonone.com/2021/07/hackerrank-xor-matrix-problem-solution.html
Getting this error:
Solution.java:55: error: cannot find symbol for (int resultItr = 0; resultItr < result.length; resultItr++) { ^ symbol: variable result location: class Solution Solution.java:56: error: cannot find symbol bufferedWriter.write(String.valueOf(result[resultItr])); ^ symbol: variable result location: class Solution Solution.java:58: error: cannot find symbol if (resultItr != result.length - 1) { ^ symbol: variable result location: class Solution 3 errors
here is the first version, even main() has been corrected :