Category : arrays

for (int i = 0; i < n; ++i) r[i] = c[i] = 0ll; I saw somewhere written like this but I don’t know exactly what is the reason for doing this. Also later when i am submitting my code without using above loop in my code my output was incorrect. Can somebody explain ? ..

Read more

I am following alone to a YouTube C++ tutorial on creating arrays using loops on Vscode for MacOSx. https://www.youtube.com/watch?v=Z9Wc8EsGjJY This is the for loop I wrote for(;int x=0; x<=8, x++){ The terminal keeps giving me this warning: warning: relational comparison result unused [-Wunused-comparison] for(;int x=0; x<=8, x++){ And as a result my array isn’t printed. ..

Read more