fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int q0;
  6. int s1
  7. int smod;
  8. int s11;
  9. int res
  10. for (q0=0; q0 <=255; q0++) {
  11. for (s1=0; s1<=255; s1++) {
  12. for (smod=0; smod<=255; smod++) {
  13. for (s11=0; s11<=255; s11++) {
  14. res=smod+q0;
  15. if (res==s1) {
  16. out.open("1.txt");
  17. }
  18. }
  19. }
  20. }
  21. }
  22. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:7:2: error: expected initializer before ‘int’
  int smod;
  ^~~
prog.cpp:10:2: error: expected initializer before ‘for’
  for (q0=0; q0 <=255; q0++) {
  ^~~
prog.cpp:10:27: error: expected ‘;’ before ‘)’ token
  for (q0=0; q0 <=255; q0++) {
                           ^
prog.cpp:22:1: error: expected ‘}’ at end of input
 }
 ^
stdout
Standard output is empty