| Problem | factorymachines |
|---|---|
| User | YSH2020 |
| Submission Time | 2025-05-15 15:26:03 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
factorymachines.cpp: In function ‘int main()’:
factorymachines.cpp:8:6: error: expected initializer before ‘n’
8 | int n; cin >> n;
| ^
factorymachines.cpp:8:16: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
8 | int n; cin >> n;
| ^
| yn
factorymachines.cpp:9:6: error: expected initializer before ‘k’
9 | int k; cin >> k;
| ^
factorymachines.cpp:9:16: error: ‘k’ was not declared in this scope
9 | int k; cin >> k;
| ^
factorymachines.cpp:10:6: error: expected initializer before ‘a’
10 | int a[n]; for (int i = 0; i < n; i++) cin >> a[i];
| ^
factorymachines.cpp:10:21: error: expected ‘;’ before ‘i’
10 | int a[n]; for (int i = 0; i < n; i++) cin >> a[i];
| ^
factorymachines.cpp:10:21: error: ‘i’ was not declared in this scope<