+ 2

What is the reason for not accepting this quiz ?

//Declined due to community downvotes. Please review What is the output of this code? int main(){ int a=4; cout<<a/pow(a,2); return 0; }

2nd Feb 2018, 3:16 PM
Avinash Thakur
Avinash Thakur - avatar
6 Answers
2nd Feb 2018, 4:07 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 4
If you run it in the code playground, it results in an error. This is because it doesn't recognize the function pow as it is not a built-in function within C++.
2nd Feb 2018, 3:41 PM
Faisal
Faisal - avatar
+ 2
When people are reviewing quizzes, they have an option to either upvote it or downvote it. For it to pass, you would need to get 3 upvotes and for it to be declined, it needs 3 downvotes. From what it seems, enough people downvoted your quiz for it to be declined.
2nd Feb 2018, 3:36 PM
Faisal
Faisal - avatar
+ 2
@Faisal can you find anything wrong in the question ? It was declined twice.
2nd Feb 2018, 3:38 PM
Avinash Thakur
Avinash Thakur - avatar
+ 2
pow is in "math.h". there already exist quizzes which use library functions without explicitly mentioning that such library is included.
2nd Feb 2018, 3:56 PM
Avinash Thakur
Avinash Thakur - avatar