| Problem | modsum |
|---|---|
| User | Martin |
| Submission Time | 2026-10-03 15:27:07 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
modsum.cpp: In function ‘void generate(int, int)’:
modsum.cpp:10:21: error: ‘x’ was not declared in this scope
10 | cout << x[i] << " ";
| ^
modsum.cpp:17:22: error: ‘lower’ was not declared in this scope; did you mean ‘tolower’?
17 | for (int value = lower[pos]; value <= upper[pos]; value++) {
| ^~~~~
| tolower
modsum.cpp:17:43: error: ‘upper’ was not declared in this scope; did you mean ‘toupper’?
17 | for (int value = lower[pos]; value <= upper[pos]; value++) {
| ^~~~~
| toupper
modsum.cpp:19:9: error: ‘x’ was not declared in this scope
19 | x[pos] = value;
| ^
modsum.cpp: In function ‘int main()’:
modsum.cpp:38:19: error: expected ‘;’ before ‘}’ token
38 | generate(0, n)
|