Problem sumint
User Krishna
Submission Time 2023-10-19 08:43:27
Score 0
Max Time N/A
Max Memory N/A

Compile Error

sumint.cpp: In function ‘int main()’:
sumint.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i=0;i<n;i++) {
| ^
sumint.cpp:16:11: error: found ‘:’ in nested-name-specifier, expected ‘::’
16 | for (meow:meows) {
| ^
| ::
sumint.cpp:16:7: error: ‘meow’ has not been declared
16 | for (meow:meows) {
| ^~~~
sumint.cpp:20:2: error: expected primary-expression before ‘return’
20 | return 0;
| ^~~~~~
sumint.cpp:19:14: error: expected ‘)’ before ‘return’
19 | cout << sum;
| ^
| )
20 | return 0;
| ~~~~~~
sumint.cpp:16:6: note: to match this ‘(’
16 | for (meow:meows) {
| ^