Problem mathhomework
User kit17
Submission Time 2026-06-22 16:58:43
Score 0
Max Time N/A
Max Memory N/A

Compile Error

mathhomework.cpp: In function ‘int main()’:
mathhomework.cpp:4:5: error: ‘cin’ was not declared in this scope
4 | cin >> N;
| ^~~
mathhomework.cpp:11:9: error: ‘string’ was not declared in this scope
11 | string prod = to_string(P);
| ^~~~~~
mathhomework.cpp:12:22: error: ‘prod’ was not declared in this scope
12 | int W = (int)prod.size();
| ^~~~
mathhomework.cpp:14:15: error: expected ‘;’ before ‘ys’
14 | string ys = to_string(Y);
| ^~~
| ;
mathhomework.cpp:16:27: error: ‘ys’ was not declared in this scope
16 | for (int i = (int)ys.size() - 1, pos = 0; i >= 0; --i, ++pos) {
| ^~
mathhomework.cpp:16:66: error: ‘pos’ was not declared in this scope
16 | for (int i = (int)ys.size() - 1, pos = 0; i >= 0; --i, ++pos) {
|