Problem bracketex
User gthinh
Submission Time 2026-01-22 11:55:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

bracketex.cpp:2:7: error: expected nested-name-specifier before ‘naemspace’
2 | using naemspace std;
| ^~~~~~~~~
bracketex.cpp: In function ‘int main()’:
bracketex.cpp:4:22: error: expected initializer before ‘s’
4 | long long l, string s;
| ^
bracketex.cpp:5:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
5 | cin>>l>>s;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:75,
from bracketex.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
bracketex.cpp:5:10: error: ‘s’ was not declared in this scope
5 | cin>>l>>s;
| ^
bracketex.cpp:16:4: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
16 | cout<&l