You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add user user_name (pwd: user_password ) to database database_name
# CodeSensor/tools
sudo /usr/bin/mysql_secure_installation
mysql -h localhost -u root -p;
CREATE USER 'user_name'@'localhost' IDENTIFIED BY 'user_password';
CREATE DATABASE database_name;
GRANT ALL PRIVILEGES ON database_name .* TO 'user_name'@'localhost';
FLUSH PRIVILEGES;
modify homework_inspector_config to change the deadline, illegal headers, homework title and description
input.txt and output.txt.gold are the input and correct output for the homework
verifier.py checks the correctness of the answer
data.hpp has struct for storing the input data, load_data(...) function to read in the input data and store it in the struct, and SHM_NAME to distinguish the names of shared memory in the OS
hidden_data.hpp, hidden_input.txt and hidden_output.txt.gold are for code re-evaluation, they have the same purposes as the non-hidden ones, but have different test data
be sure to change hidden_data.hpp's SHM_NAME if it's copied from data.hpp
check out 2021_hw0_copy_paste or 2021_hw1_sort_text for some examples
Upload to website
install homework
# root directory
sudo ./install <HW_NAME>
change the links in CodeSensor/web_frontpage/index.html