Record Detail

Compile Error

/in/sam.cpp: In function 'int main(int, char**)':
/in/sam.cpp:75:14: error: 'ADD' was not declared in this scope
         case ADD:
              ^~~
/in/sam.cpp:75:14: note: suggested alternative: 'EADV'
         case ADD:
              ^~~
              EADV
/in/sam.cpp:78:14: error: 'NOR' was not declared in this scope
         case NOR:
              ^~~
/in/sam.cpp:81:14: error: 'IFZ' was not declared in this scope
         case IFZ:
              ^~~
/in/sam.cpp:90:14: error: 'HALT' was not declared in this scope
         case HALT:
              ^~~~
/in/sam.cpp:93:14: error: 'LOAD' was not declared in this scope
         case LOAD:
              ^~~~
/in/sam.cpp:96:14: error: 'STORE' was not declared in this scope
         case STORE:
              ^~~~~
/in/sam.cpp:102:14: error: 'POP' was not declared in this scope
         case POP:
              ^~~
/in/sam.cpp:105:14: error: 'PUSHI' was not declared in this scope
         case PUSHI:
              ^~~~~
/in/sam.cpp:108:14: error: 'NOOP' was not declared in this scope
         case NOOP:
              ^~~~
/in/sam.cpp:108:14: note: suggested alternative: 'ELOOP'
         case NOOP:
              ^~~~
              ELOOP
/in/compile/Makefile:16: recipe for target 'buildStackMachine' failed
make: *** [buildStackMachine] Error 1

Information

Submit By
Type
Submission
Homework
Project 5
Language
C++
Submit At
2021-08-01 03:50:00
Judged At
2021-08-01 03:50:00
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes