Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Explain to me why and what these errors mean and how to fix them? Compilation Error: mafa0632 hw3.cpp:7:8: warning: built-in function 'index' declared as non-function
Explain to me why and what these errors mean and how to fix them?
Compilation Error: mafa0632 hw3.cpp:7:8: warning: built-in function 'index' declared as non-function (-Wbuiltin-declaration-mismatc int index = 0 , i = 0; //variables used as index hw3.cpp:26:9: error: 'cout in namespace 'std' does not name a type std::cout>finishLine Result; In file included from hw3.cpp:3: /usr/include/c++/8/iostream:60:18: note: 'std::cin' declared here extern istream cin; /// Linked to standard input hw3.cpp:28:4: error: expected unqualified-id before 'while' while (finishLineResult!="done") Compilation Error: mafa0632 hw3.cpp:7:8: warning: built-in function 'index' declared as non-function (-Wbuiltin-declaration-mismatc int index = 0 , i = 0; //variables used as index hw3.cpp:26:9: error: 'cout in namespace 'std' does not name a type std::cout>finishLine Result; In file included from hw3.cpp:3: /usr/include/c++/8/iostream:60:18: note: 'std::cin' declared here extern istream cin; /// Linked to standard input hw3.cpp:28:4: error: expected unqualified-id before 'while' while (finishLineResult!="done")Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started