fork(1) download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // Richelle Almada 000680282
  6.  
  7.  
  8. int quantities[10][25] = {{1},{2},{3},{4},{5},{6},{7},{8},{9},{10}};
  9.  
  10. For ( int x = 0, x >= 9, x = x + 1){
  11. For ( int y = 0, y >= 24, y = y + 1){
  12. quantities[x][y] = quantities{x][y] - 1;
  13. cout << quantities[x][y] << " ";
  14. }
  15. cout << endl;
  16. }
  17.  
  18. return 0;
  19. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp: In function ‘int main()’:
prog.cpp:10:8: error: expected primary-expression before ‘int’
  For ( int x = 0, x >= 9, x = x + 1){
        ^~~
prog.cpp:10:19: error: ‘x’ was not declared in this scope
  For ( int x = 0, x >= 9, x = x + 1){
                   ^
prog.cpp:10:36: error: ‘For’ was not declared in this scope
  For ( int x = 0, x >= 9, x = x + 1){
                                    ^
prog.cpp:19:1: error: expected ‘}’ at end of input
 }
 ^
stdout
Standard output is empty