All pastes #2062896 Raw Edit

leleobhz

public c v1 · immutable
#2062896 ·published 2011-05-18 01:23 UTC
rendered paste body
┌─[leleobhz@daniela.leleobhz.org] └─[~]> gcc -Wall -g -o jogo_ricardo jogo_ricardo.c jogo_ricardo.c: In function ‘main’:jogo_ricardo.c:24:5: error: ‘for’ loop initial declarations are only allowed in C99 modejogo_ricardo.c:24:5: note: use option -std=c99 or -std=gnu99 to compile your codejogo_ricardo.c:72:1: warning: control reaches end of non-void function┌─[leleobhz@daniela.leleobhz.org] └─[~]> vi jogo_ricardo.c +24┌─[leleobhz@daniela.leleobhz.org] └─[~]> vi jogo_ricardo.c +24┌─[leleobhz@daniela.leleobhz.org] └─[~]> gcc -Wall -g -std=gnu99 -o jogo_ricardo jogo_ricardo.c ┌─[leleobhz@daniela.leleobhz.org] └─[~]> ./jogo_ricardo sh: cls: not foundDigite quantas vezes deseja jogar o Jogo da Velha: 1sh: cls: not found       PLACARJogador    -> 0 Computador -> 0JOGO DA VELHA1     |   |      ---|---|---2     |   |      ---|---|---3     |   |       1   2   3Digite as coordenadas para X.Digite a linha: 1Digite a coluna: 2sh: cls: not foundJOGO DA VELHA1   O | X |      ---|---|---2     |   |      ---|---|---3     |   |       1   2   3Digite as coordenadas para X.Digite a linha: 1Digite a coluna: 1Posicao invalida, tente novamente. Digite as coordenadas para X.Digite a linha: 1Digite a coluna: 3sh: cls: not foundJOGO DA VELHA1   O | X | X    ---|---|---2     |   |      ---|---|---3     | O |       1   2   3Digite as coordenadas para X.Digite a linha: 4Digite a coluna: 4Posicao invalida, tente novamente. Digite as coordenadas para X.Digite a linha: 3Digite a coluna: 3sh: cls: not foundJOGO DA VELHA1   O | X | X    ---|---|---2     |   | O    ---|---|---3     | O | X     1   2   3Digite as coordenadas para X.Digite a linha: 2Digite a coluna: 2sh: cls: not foundJOGO DA VELHA1   O | X | X    ---|---|---2   O | X | O    ---|---|---3     | O | X     1   2   3Digite as coordenadas para X.Digite a linha: 3Digite a coluna: 1sh: cls: not foundO Jogador ganhou!JOGO DA VELHA1   O | X | X    ---|---|---2   O | X | O    ---|---|---3   X | O | X     1   2   3sh: pause: not foundsh: cls: not found       PLACARJogador    -> 1 Computador -> 0Dessa vez o Jogador venceu!!!Digite 1 para jogar novamente ou pressione qualquer outra tecla para sair: qsh: pause: not found0┌─[leleobhz@daniela.leleobhz.org] └─[~]>