fork download
  1. #include <iostream>
  2. #include <cstdlib>
  3. #include <ctime>
  4. using namespace std;
  5. int main()
  6. {float A[5];
  7. for(int i=8 ; i<16 ; i++)
  8. {A[i]=8+rand()%15 ;
  9. }
  10. {for(i=0; i<6; i++)}
  11. {cout<<A[i]*A[i]<<" ";
  12. }
  13. return 0;
  14. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:10:6: error: ‘i’ was not declared in this scope
 {for(i=0; i<6; i++)}
      ^
prog.cpp:10:20: error: expected primary-expression before ‘}’ token
 {for(i=0; i<6; i++)}
                    ^
prog.cpp:11:10: error: ‘i’ was not declared in this scope
 {cout<<A[i]*A[i]<<" ";
          ^
stdout
Standard output is empty