fork download
  1. #include <iostream>
  2. #include <cstring>
  3. #include <cmath>
  4.  
  5. #include <iomanip>
  6.  
  7. using namespace std;
  8.  
  9. int main () {
  10. char letter[]={'a','b','c','d','e'};
  11. int i, j;
  12.  
  13.  
  14. for(i=0;i<5;i++;){
  15. for(j=0;j<5;j++){
  16. cout <<letter[i] << letter[j] << endl;
  17. }
  18. }
  19. }
  20.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:14: error: expected `)' before ‘;’ token
prog.cpp:14: error: expected primary-expression before ‘)’ token
prog.cpp:14: error: expected `;' before ‘)’ token
prog.cpp:10: warning: unused variable ‘letter’
prog.cpp:11: warning: unused variable ‘j’
prog.cpp:19: error: expected `}' at end of input
stdout
Standard output is empty