fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int map[8][8], nx, ny, ex, ey;
  7.  
  8. while(true)//for (int fase = 0; ; fase++)
  9. {
  10. for (int y = 0; y < 8; y++)
  11. {
  12. for (int x = 0; x < 8; x++)
  13. {
  14.  
  15. if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
  16. if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
  17. if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
  18. if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
  19.  
  20. }
  21. }
  22.  
  23. }
  24.  
  25.  
  26. return 0;
  27. }
  28.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:15:48: error: ‘fase’ was not declared in this scope
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
prog.cpp:15:48: note: suggested alternative: ‘free’
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
                                                free
prog.cpp:16:48: error: ‘fase’ was not declared in this scope
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
prog.cpp:16:48: note: suggested alternative: ‘free’
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
                                                free
prog.cpp:17:48: error: ‘fase’ was not declared in this scope
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
prog.cpp:17:48: note: suggested alternative: ‘free’
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
                                                free
prog.cpp:18:48: error: ‘fase’ was not declared in this scope
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
prog.cpp:18:48: note: suggested alternative: ‘free’
     if (x - 1 >= 0 && y - 1 >= 0) { map[y,x] = fase + 1; }
                                                ^~~~
                                                free
stdout
Standard output is empty