Problem integralmania
User aj
Submission Time 2025-01-24 12:31:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

integralmania.cpp:5:34: error: ‘auto’ parameter not permitted in this context
5 | long long find_sum_of_even(stack sample_stack){
| ^~~~~~~~~~~~
integralmania.cpp: In function ‘long long int find_sum_of_even()’:
integralmania.cpp:7:20: error: ‘sample_stack’ was not declared in this scope
7 | for (int i=0;i<sample_stack.size();i+=2){
| ^~~~~~~~~~~~
integralmania.cpp:10:15: error: expected ‘;’ before ‘}’ token
10 | return sum
| ^
| ;
11 | }
| ~
integralmania.cpp: In function ‘int main()’:
integralmania.cpp:37:42: error: too many arguments to function ‘long long int find_sum_of_even()’
37 | cout<<find_sum_of_even(answer)<<endl;
| ^
integralmania.cpp:5:11: note: declared here
5 | long long find_sum_of_even(stack s