Problem | atomsplit |
---|---|
User | Z2077 |
Submission Time | 2025-06-19 10:35:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:10:25: error: ‘N’ was not declared in this scope
10 | for (int i = 0; i < N; ++i) {
| ^
atomsplit.cpp:16:9: error: redeclaration of ‘int t’
16 | int t = 0;
| ^
atomsplit.cpp:6:12: note: ‘int t’ previously declared here
6 | int n, t;
| ^
atomsplit.cpp:29:13: error: ‘totalEnergy’ was not declared in this scope
29 | cout << totalEnergy << endl;
| ^~~~~~~~~~~