Problem sumint
User ShaquilleOatmeal34
Submission Time 2025-03-03 16:59:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:6:14: error: ‘sync_with_studio’ is not a member of ‘std::ios_base’
6 | ios_base::sync_with_studio(false);
| ^~~~~~~~~~~~~~~~
sumint.cpp: At global scope:
sumint.cpp:10:5: error: ‘cin’ does not name a type; did you mean ‘sin’?
10 | cin >> d;
| ^~~
| sin
sumint.cpp:15:5: error: expected unqualified-id before ‘for’
15 | for (int i = 0; i < d; ++i) {
| ^~~
sumint.cpp:15:21: error: ‘i’ does not name a type
15 | for (int i = 0; i < d; ++i) {
| ^
sumint.cpp:15:28: error: expected unqualified-id before ‘++’ token
15 | for (int i = 0; i < d; ++i) {
| ^~
sumint.cpp:20:5: error: ‘cout’ does not name a type
20 | cout << totalMeows << endl;
| ^~~~
sumint.cpp:22:5: error: expected unqualified-id before ‘re