Problem | flamethrower |
---|---|
User | altuser1609 |
Submission Time | 2023-04-17 15:56:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
flamethrower.cpp:2:2: error: invalid preprocessing directive #includ; did you mean #include?
2 | #includ <algorithm>
| ^~~~~~
| include
flamethrower.cpp:3:1: error: ‘uisng’ does not name a type
3 | uisng namespace std;
| ^~~~~
flamethrower.cpp: In function ‘int main()’:
flamethrower.cpp:7:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
7 | cin >> n >> a;
| ^~~
| std::cin
In file included from flamethrower.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
flamethrower.cpp:13:26: error: ‘k’ was not declared in this scope
13 | for (int i = 0; i < n - k; i++) {
| ^
flamethrower.cpp:18:9: error: ‘max’ was not declared in this scope; did you mean ‘std::max’?
18 | ans = max(ans, sum);