-
Notifications
You must be signed in to change notification settings - Fork 131
Description
I'm trying to use the Arduino IDE to running this project, but when I complier this project, it report an error :
Arduino:1.8.9 (Windows 10), 开发板:"Arduino/Genuino Uno"
RubixCube:25:1: error: 'color' does not name a type
RubixCube:26:1: error: 'color' does not name a type
RubixCube:27:1: error: 'color' does not name a type
RubixCube:28:1: error: 'color' does not name a type
RubixCube:29:1: error: 'color' does not name a type
RubixCube:30:1: error: 'color' does not name a type
RubixCube:42:1: error: 'Cube' does not name a type
RubixCube:46:1: error: 'ArrayList' does not name a type
RubixCube:56:1: error: 'ArrayList' does not name a type
RubixCube:57:4: error: expected unqualified-id before '[' token
RubixCube:80:1: error: 'PVector' does not name a type
RubixCube:81:1: error: 'PVector' does not name a type
FUCKYOU:216:29: error: 'PVector' was not declared in this scope
FUCKYOU:216:43: error: 'PVector' was not declared in this scope
FUCKYOU:235:14: error: 'PVector' was not declared in this scope
FUCKYOU:235:22: error: expected primary-expression before ']' token
FUCKYOU:235:29: error: 'PVector' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\FUCKYOU.ino:235:38: warning: expression list treated as compound expression in initializer [-fpermissive]
FUCKYOU:243:23: error: 'PVector' was not declared in this scope
FUCKYOU:243:35: error: 'PVector' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\FUCKYOU.ino:243:45: warning: expression list treated as compound expression in initializer [-fpermissive]
FUCKYOU:268:27: error: 'PVector' was not declared in this scope
FUCKYOU:268:41: error: 'PVector' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void setup()':
RubixCube:96:20: error: 'P3D' was not declared in this scope
RubixCube:96:23: error: 'size' was not declared in this scope
RubixCube:100:3: error: 'cube' was not declared in this scope
RubixCube:100:14: error: expected type-specifier before 'Cube'
RubixCube:102:5: error: 'turnCounter' was not declared in this scope
RubixCube:106:15: error: 'frameRate' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void resetCube()':
RubixCube:110:3: error: 'cube' was not declared in this scope
RubixCube:110:14: error: expected type-specifier before 'Cube'
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void draw()':
RubixCube:118:22: error: 'cube' was not declared in this scope
RubixCube:127:26: error: 'println' was not declared in this scope
RubixCube:129:5: error: 'cube' was not declared in this scope
RubixCube:139:16: error: 'pushMatrix' was not declared in this scope
RubixCube:141:15: error: 'width' was not declared in this scope
RubixCube:141:24: error: 'height' was not declared in this scope
RubixCube:141:35: error: 'translate' was not declared in this scope
RubixCube:142:18: error: 'rotateX' was not declared in this scope
RubixCube:191:33: error: 'rotateY' was not declared in this scope
RubixCube:197:34: error: 'lockedMousePos' was not declared in this scope
RubixCube:197:52: error: 'mouseY' was not declared in this scope
RubixCube:203:38: error: 'lockedMousePos' was not declared in this scope
RubixCube:203:56: error: 'mouseX' was not declared in this scope
RubixCube:203:92: error: 'rotateY' was not declared in this scope
RubixCube:207:63: error: 'rotateY' was not declared in this scope
RubixCube:216:24: error: 'rotations' was not declared in this scope
RubixCube:228:41: error: 'rotateY' was not declared in this scope
RubixCube:231:41: error: 'rotateZ' was not declared in this scope
RubixCube:253:21: error: 'background' was not declared in this scope
RubixCube:257:11: error: 'frameCount' was not declared in this scope
RubixCube:258:23: error: 'background' was not declared in this scope
RubixCube:284:44: error: 'turnOs' was not declared in this scope
RubixCube:323:20: error: 'turnOs' was not declared in this scope
RubixCube:352:15: error: 'popMatrix' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void keyPressed()':
RubixCube:359:10: error: 'key' was not declared in this scope
RubixCube:365:5: error: 'lockedMousePos' was not declared in this scope
RubixCube:365:26: error: expected type-specifier before 'PVector'
RubixCube:383:10: error: 'keyCode' was not declared in this scope
RubixCube:384:8: error: 'RIGHT' was not declared in this scope
RubixCube:387:8: error: 'LEFT' was not declared in this scope
RubixCube:390:8: error: 'UP' was not declared in this scope
RubixCube:393:8: error: 'DOWN' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void doTurn()':
RubixCube:415:54: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
RubixCube:447:5: error: 'cube' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void doTurnFromObj()':
RubixCube:481:3: error: 'TurnO' was not declared in this scope
RubixCube:483:7: error: 'turnOs' was not declared in this scope
RubixCube:484:9: error: 'turn' was not declared in this scope
RubixCube:490:3: error: 'cube' was not declared in this scope
RubixCube:490:24: error: 'turn' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void compensateForTurn(char, boolean)':
RubixCube:495:5: error: 'rotations' was not declared in this scope
RubixCube:497:5: error: 'rotations' was not declared in this scope
RubixCube:497:33: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void simulateRotation(int, boolean)':
RubixCube:539:19: error: 'XRotation' was not declared in this scope
RubixCube:547:19: error: 'YRotation' was not declared in this scope
RubixCube:555:19: error: 'ZRotation' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'void printTurnos()':
RubixCube:566:25: error: 'println' was not declared in this scope
RubixCube:567:22: error: 'turnOs' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino: In function 'boolean moreTurns()':
RubixCube:573:10: error: 'turnOs' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: At global scope:
Block:3:3: error: 'PVector' does not name a type
Block:4:3: error: 'color' does not name a type
Block:8:17: error: expected ')' before 'pos'
Block:102:29: error: 'color' has not been declared
Block:178:25: error: 'color' has not been declared
Block:178:33: error: expected ',' or '...' before 'cols'
Block:200:25: error: 'color' has not been declared
Block:212:3: error: 'color' does not name a type
Block:224:3: error: 'color' does not name a type
Block:230:16: error: 'color' has not been declared
Block:255:1: error: expected ';' after class definition
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'Block Block::clone()':
Block:18:29: error: conversion from 'Block*' to non-scalar type 'Block' requested
Block:19:11: error: 'class Block' has no member named 'colors'
Block:19:20: error: 'colors' was not declared in this scope
Block:20:11: error: 'class Block' has no member named 'pos'
Block:20:21: error: expected type-specifier before 'PVector'
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'void Block::turn(int, boolean)':
Block:27:5: error: 'color' was not declared in this scope
Block:27:11: error: expected primary-expression before ']' token
Block:41:7: error: 'newColors' was not declared in this scope
Block:41:22: error: 'colors' was not declared in this scope
Block:59:5: error: 'colors' was not declared in this scope
Block:59:14: error: 'newColors' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'void Block::setColors()':
Block:63:24: error: 'colors' was not declared in this scope
Block:64:26: error: 'color' was not declared in this scope
Block:66:9: error: 'pos' was not declared in this scope
Block:67:7: error: 'colors' was not declared in this scope
Block:67:28: error: 'color' was not declared in this scope
Block:70:9: error: 'pos' was not declared in this scope
Block:71:7: error: 'colors' was not declared in this scope
Block:71:36: error: 'color' was not declared in this scope
Block:74:9: error: 'pos' was not declared in this scope
Block:75:7: error: 'colors' was not declared in this scope
Block:75:34: error: 'color' was not declared in this scope
Block:78:9: error: 'pos' was not declared in this scope
Block:79:7: error: 'colors' was not declared in this scope
Block:79:34: error: 'color' was not declared in this scope
Block:82:9: error: 'pos' was not declared in this scope
Block:83:7: error: 'colors' was not declared in this scope
Block:83:36: error: 'color' was not declared in this scope
Block:86:9: error: 'pos' was not declared in this scope
Block:87:7: error: 'colors' was not declared in this scope
Block:87:34: error: 'color' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'void Block::show()':
Block:95:24: error: 'colors' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'void Block::drawFace(int, int)':
Block:107:23: error: 'color' was not declared in this scope
Block:112:13: error: 'fill' was not declared in this scope
Block:113:13: error: 'stroke' was not declared in this scope
Block:115:28: error: 'strokeWeight' was not declared in this scope
Block:121:18: error: 'beginShape' was not declared in this scope
Block:126:16: error: 'CLOSE' was not declared in this scope
Block:126:21: error: 'endShape' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'boolean Block::matchesColors(int*)':
Block:179:25: error: 'cols' was not declared in this scope
Block:183:24: error: 'cols' was not declared in this scope
Block:185:27: error: 'colors' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'boolean Block::matchesColors(int)':
Block:204:25: error: 'colors' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'char Block::getFace(int)':
Block:231:25: error: 'colors' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'String Block::getFaces()':
Block:243:25: error: 'colors' was not declared in this scope
Block:244:31: error: 'color' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Block.ino: In member function 'void Block::addVertex(int, int, int)':
Block:253:67: error: 'vertex' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: At global scope:
Cube:2:8: error: expected unqualified-id before '[' token
Cube:6:3: error: 'ArrayList' does not name a type
Cube:7:3: error: 'ArrayList' does not name a type
Cube:9:3: error: 'ArrayList' does not name a type
Cube:17:3: error: 'CubeAlgorithms' does not name a type
Cube:187:24: error: 'TurnO' has not been declared
Cube:209:3: error: 'ArrayList' does not name a type
Cube:223:25: error: 'ArrayList' has not been declared
Cube:223:34: error: expected ',' or '...' before '<' token
Cube:328:3: error: 'ArrayList' does not name a type
Cube:569:8: error: expected unqualified-id before '[' token
TurnO:33:1: error: expected '}' at end of input
Cube:10:37: error: expected type-specifier before 'PVector'
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In constructor 'Cube::Cube()':
Cube:19:5: error: 'blocks' was not declared in this scope
Cube:19:67: error: array size in new-expression must be constant
Cube:19:67: error: the value of 'numberOfSides' is not usable in a constant expression
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino:8:5: note: 'int numberOfSides' is not const
Cube:19:67: error: array size in new-expression must be constant
Cube:19:67: error: the value of 'numberOfSides' is not usable in a constant expression
F:\编程工具\RubiksCubeAI\RubixCube\RubixCube.ino:8:5: note: 'int numberOfSides' is not const
Cube:23:43: error: expected type-specifier before 'PVector'
Cube:27:5: error: 'algos' was not declared in this scope
Cube:27:17: error: expected type-specifier before 'CubeAlgorithms'
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::show()':
Cube:64:22: error: 'pushMatrix' was not declared in this scope
Cube:65:47: error: 'rotatingBlocks' was not declared in this scope
Cube:65:71: error: 'blocks' was not declared in this scope
Cube:68:52: error: 'rotateX' was not declared in this scope
Cube:71:52: error: 'rotateY' was not declared in this scope
Cube:74:52: error: 'rotateZ' was not declared in this scope
Cube:79:73: error: 'translate' was not declared in this scope
Cube:80:11: error: 'blocks' was not declared in this scope
Cube:81:21: error: 'popMatrix' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::finaliseTurn(int, int, boolean)':
Cube:121:24: error: 'rotatingBlocks' was not declared in this scope
Cube:125:25: error: 'cycleLists' was not declared in this scope
Cube:126:7: error: 'ArrayList' was not declared in this scope
Cube:126:22: error: expected primary-expression before '>' token
Cube:126:24: error: 'temp' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::finishTurningWholeCube(int, boolean)':
Cube:147:11: error: 'blocks' was not declared in this scope
Cube:153:7: error: 'cycleLists' was not declared in this scope
Cube:153:48: error: 'getAllBlocksToRotate' was not declared in this scope
Cube:155:9: error: 'ArrayList' was not declared in this scope
Cube:155:24: error: expected primary-expression before '>' token
Cube:155:26: error: 'temp' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::turnCubeFromObj(int)':
Cube:188:16: error: request for member 'index' in 't', which is of non-class type 'int'
Cube:188:25: error: request for member 'axis' in 't', which is of non-class type 'int'
Cube:188:33: error: request for member 'clockwise' in 't', which is of non-class type 'int'
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::turnCube(int, int, boolean)':
Cube:199:10: error: request for member 'turningClockwise' in '(Cube*)this', which is of pointer type 'Cube*' (maybe you meant to use '->' ?)
Cube:200:5: error: 'cycleLists' was not declared in this scope
Cube:200:53: error: 'getAllBlocksToRotate' was not declared in this scope
Cube:201:5: error: 'rotatingBlocks' was not declared in this scope
Cube:201:26: error: expected type-specifier before 'ArrayList'
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::returnListToCube(int)':
Cube:227:32: error: 'listNumber' was not declared in this scope
Cube:229:12: error: 'xOrYOrZ' was not declared in this scope
Cube:232:11: error: 'index' was not declared in this scope
Cube:237:9: error: 'blocks' was not declared in this scope
Cube:237:49: error: 'list' was not declared in this scope
Cube:243:9: error: 'blocks' was not declared in this scope
Cube:243:49: error: 'list' was not declared in this scope
Cube:249:9: error: 'blocks' was not declared in this scope
Cube:249:49: error: 'list' was not declared in this scope
Cube:255:9: error: 'blocks' was not declared in this scope
Cube:255:49: error: 'list' was not declared in this scope
Cube:265:9: error: 'blocks' was not declared in this scope
Cube:265:49: error: 'list' was not declared in this scope
Cube:271:9: error: 'blocks' was not declared in this scope
Cube:271:49: error: 'list' was not declared in this scope
Cube:277:9: error: 'blocks' was not declared in this scope
Cube:277:49: error: 'list' was not declared in this scope
Cube:283:9: error: 'blocks' was not declared in this scope
Cube:283:49: error: 'list' was not declared in this scope
Cube:294:9: error: 'blocks' was not declared in this scope
Cube:294:49: error: 'list' was not declared in this scope
Cube:300:9: error: 'blocks' was not declared in this scope
Cube:300:49: error: 'list' was not declared in this scope
Cube:306:9: error: 'blocks' was not declared in this scope
Cube:306:49: error: 'list' was not declared in this scope
Cube:312:9: error: 'blocks' was not declared in this scope
Cube:312:49: error: 'list' was not declared in this scope
Cube:319:11: error: 'blocks' was not declared in this scope
Cube:319:37: error: expected type-specifier before 'PVector'
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: In member function 'void Cube::showBlacks()':
Cube:427:18: error: 'pushMatrix' was not declared in this scope
Cube:428:114: error: 'translate' was not declared in this scope
Cube:430:13: error: 'fill' was not declared in this scope
Cube:431:16: error: 'noStroke' was not declared in this scope
Cube:439:21: error: 'rotateZ' was not declared in this scope
Cube:444:22: error: 'rotateY' was not declared in this scope
Cube:451:20: error: 'beginShape' was not declared in this scope
Cube:452:46: error: 'vertex' was not declared in this scope
Cube:456:18: error: 'CLOSE' was not declared in this scope
Cube:456:23: error: 'endShape' was not declared in this scope
Cube:459:20: error: 'beginShape' was not declared in this scope
Cube:460:50: error: 'vertex' was not declared in this scope
Cube:464:18: error: 'CLOSE' was not declared in this scope
Cube:464:23: error: 'endShape' was not declared in this scope
Cube:469:31: error: 'rotateX' was not declared in this scope
Cube:471:30: error: 'rotateX' was not declared in this scope
Cube:475:20: error: 'beginShape' was not declared in this scope
Cube:476:46: error: 'vertex' was not declared in this scope
Cube:480:18: error: 'CLOSE' was not declared in this scope
Cube:480:23: error: 'endShape' was not declared in this scope
Cube:483:20: error: 'beginShape' was not declared in this scope
Cube:484:50: error: 'vertex' was not declared in this scope
Cube:488:18: error: 'CLOSE' was not declared in this scope
Cube:488:23: error: 'endShape' was not declared in this scope
Cube:491:17: error: 'popMatrix' was not declared in this scope
F:\编程工具\RubiksCubeAI\RubixCube\Cube.ino: At global scope:
Cube:494:3: error: expected unqualified-id at end of input
exit status 1
'color' does not name a type