Why is the code not working? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

Why is the code not working?

#include <iostream> using namespace std; main ()Ā  { intĀ  number[15] ;Ā  int elmenumb =0 ; for (int i =0 ;i < 15 ; i++) Ā { Ā  elmenumb = 1 + i ; Ā  cout <<"input" << elmenumb<< "Element:" ; Ā  cin >> number[i]; Ā } Ā for(int i = 0; i <15 ; i++) Ā  cout << number [i ] << " ";Ā  }

14th May 2022, 1:33 PM
Ų“Ł†Łˆ Ł…Ł†Łˆ
3 Respostas
+ 2
What is your problem with the code? edit: Ų“Ł†Łˆ Ł…Ł†Łˆ do you got this code from any net source? it has invalid characters at empty places. remove those or rewrite entire code.
14th May 2022, 1:48 PM
Jayakrishna šŸ‡®šŸ‡³
0
Yes, it is from an external source, but I do not know the solution. I hope someone can help me solve this issue
14th May 2022, 2:33 PM
Ų“Ł†Łˆ Ł…Ł†Łˆ
0
As I already told, solution is only rewrite code or remove those invalid invisible characters and add spaces back on need. Try it and see. and use int main(), not just main()
14th May 2022, 2:50 PM
Jayakrishna šŸ‡®šŸ‡³