Problem experimentexplodeexpel
User bz
Submission Time 2024-02-02 16:46:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

experimentexplodeexpel.cpp: In function ‘int main()’:
experimentexplodeexpel.cpp:29:24: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
29 | cout << mod(n, m) << "\n";
| ^
experimentexplodeexpel.cpp:12:27: note: initializing argument 2 of ‘int mod(std::string&, int&)’
12 | int mod(string &num, int &x){
| ~~~~~^