Problem ny_mathexam
User Usu
Submission Time 2026-02-04 17:44:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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