Problem | sadtrainer |
---|---|
User | jerrielchangjiebin |
Submission Time | 2024-12-14 13:57:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
sadtrainer.cpp:8:17: error: ‘as’ is not a namespace-name
8 | using namespace as std;
| ^~
sadtrainer.cpp:8:19: error: expected ‘;’ before ‘std’
8 | using namespace as std;
| ^~~~
| ;
sadtrainer.cpp:8:20: error: ‘std’ does not name a type
8 | using namespace as std;
| ^~~
sadtrainer.cpp: In function ‘int main()’:
sadtrainer.cpp:13:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
13 | cin >> n >> k;
| ^~~
| std::cin
In file included from sadtrainer.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
sadtrainer.cpp:15:5: error: ‘vector’ was not declared in this scope
15 | vector<int> arr(n);
| ^~~~~~
sadtrainer.cpp:15:5: note: