Problem | integralmania |
---|---|
User | aj |
Submission Time | 2025-01-24 12:30:39 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
integralmania.cpp: In function ‘int main()’:
integralmania.cpp:30:19: error: ‘find_sum_of_even’ was not declared in this scope
30 | cout<<find_sum_of_even(answer)<<endl;
| ^~~~~~~~~~~~~~~~
integralmania.cpp: At global scope:
integralmania.cpp:37:34: error: ‘auto’ parameter not permitted in this context
37 | long long find_sum_of_even(stack sample_stack){
| ^~~~~~~~~~~~
integralmania.cpp: In function ‘long long int find_sum_of_even()’:
integralmania.cpp:39:20: error: ‘sample_stack’ was not declared in this scope
39 | for (int i=0;i<sample_stack.size();i+=2){
| ^~~~~~~~~~~~
integralmania.cpp:42:15: error: expected ‘;’ before ‘}’ token
42 | return sum
| ^
| ;
43 | }
| ~