Problem onlineexam
User jeongwonho64
Submission Time 2023-04-01 22:38:30
Score 0
Max Time N/A
Max Memory N/A

Compile Error

onlineexam.cpp: In function ‘std::string exam(int)’:
onlineexam.cpp:8:8: error: ‘std::string {anonymous}::<unnamed struct>::answer’ is private within this context
8 | judge.answer = s;
| ^~~~~~
In file included from onlineexam.cpp:2:
grader.cpp:62:9: note: declared private here
62 | string answer;
| ^~~~~~