Record Detail

Compile Error

/in/sam.cpp: In function 'int main(int, char**)':
/in/sam.cpp:204:12: error: deleting array 'mem' [-Werror]
     delete mem;
            ^~~
/in/sam.cpp:121:12: error: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Werror=unused-result]
     freopen("C:\\Users\\win10\\Desktop\\2021\\280\\p5\\p5\\sample.in", "r", stdin);
     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors
/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-07-27 22:08:19
Judged At
2021-07-27 22:08:19
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes