From d9977273089d89984ca1e9366ccc9f9e5323d13b Mon Sep 17 00:00:00 2001 From: "Taihsiang Ho (tai271828)" Date: Sat, 19 Apr 2025 10:50:07 +0200 Subject: [PATCH] Make test.cpp more protable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While compiling test.cpp, I encountered the following error: test.cpp: In function ‘int main()’: test.cpp:10:14: error: ‘zeros’ was not declared in this scope; did you mean ‘cytnx::zeros’? Some modern compilers or compiler options may resolve this automatically. However, explicitly declaring it improves clarity and lowers the entry barrier for beginners. --- source/install.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/install.rst b/source/install.rst index 46e3c091..31062bc1 100644 --- a/source/install.rst +++ b/source/install.rst @@ -126,7 +126,7 @@ Let us consider the same example as before for Python. Here, we want to compile using namespace std; int main(){ - auto A = zeros(4); + auto A = cytnx::zeros(4); cout << A << endl; return 0; }