Problem pushups
User SharpnessChipped
Submission Time 2023-06-06 14:18:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

pushups.cpp:1:2: error: invalid preprocessing directive #incude; did you mean #include?
1 | #incude <bits/stdc++.h>
| ^~~~~~
| include
pushups.cpp: In function ‘int main()’:
pushups.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> T;
| ^~~
pushups.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #incude <bits/stdc++.h>
pushups.cpp:12:16: error: expected ‘;’ before ‘for’
12 | Result[j] = 0
| ^
| ;
13 | for (int k=0; k<N[j]; k++) {//Goes through every value of N for chosen T to find max pushups
| ~~~
pushups.cpp:13:17: error: ‘k’ was not declared in this scope
13 | for (int k=0; k<N[j]; k++) {//Goes through every value of N for chosen T to find max pushups
| ^