Record Detail

Accepted

In file included from /in/main/main.cpp:2:0:
/in/cashingmachine.h:11:34: warning: extra ';' [-Wpedantic]
    int cas[6]={100,50,20,10,5,1};;
                                  ^
/in/cashingmachine.h: In member function 'void CashingMachine::change(std::vector<int>, int)':
/in/cashingmachine.h:89:4: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
    while (give+have[scan]*cas[scan]>ch && have[scan]>=0)
    ^~~~~
/in/cashingmachine.h:91:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
     give+=have[scan]*cas[scan];
     ^~~~
# Status Time Cost Memory Cost
#1 Accepted Detail 4ms 1.078 MiB

Information

Submit By
Type
Submission
Homework
Final Exam for VG101_BackUpTeset
Language
C++
Submit At
2020-08-10 12:07:31
Judged At
2020-08-10 12:07:31
Judged By
Score
10
Total Time
4ms
Peak Memory
1.078 MiB