Problem swords
User TheInvadr
Submission Time 2023-03-08 20:11:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp:2:1: error: ‘include’ does not name a type
2 | include namespace std;
| ^~~~~~~
swords.cpp: In function ‘int main()’:
swords.cpp:5:5: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>n;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from swords.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
swords.cpp:6:5: error: ‘pair’ was not declared in this scope; did you mean ‘std::pair’?
6 | pair<int,int> arr[n];
| ^~~~
| std::pair
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_6