Problem pushups
User Duk168
Submission Time 2024-02-22 22:28:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp: In function ‘void sum(int)’:
pushups.cpp:15:12: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
15 | return sum;
| ^~~
pushups.cpp: In function ‘int main()’:
pushups.cpp:25:19: error: expected ‘]’ before ‘}’ token
25 | cin >> A[i};
| ^
| ]
pushups.cpp:25:19: error: expected ‘;’ before ‘}’ token
25 | cin >> A[i};
| ^
| ;
pushups.cpp: At global scope:
pushups.cpp:27:2: error: expected unqualified-id before ‘for’
27 | for(int i = 0; i < N; i++){
| ^~~
pushups.cpp:27:17: error: ‘i’ does not name a type
27 | for(int i = 0; i < N; i++){
| ^
pushups.cpp:27:24: error: ‘i’ does not name a type
27 | for(int i = 0; i < N; i++){
| ^
pushups.cpp:30:5: erro