Problem lis_easy
User Hengweezy
Submission Time 2024-02-01 09:24:57
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp:1:2: error: invalid preprocessing directive #using
1 | #using <iostream>
| ^~~~~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | cin >> value;
| ^~~
lis_easy.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | #using <iostream>
lis_easy.cpp:16:11: error: expected ‘;’ before ‘}’ token
16 | k = max
| ^
| ;
17 | }
| ~
lis_easy.cpp:22:2: error: ‘cout’ was not declared in this scope
22 | cout<< k;
| ^~~~
lis_easy.cpp:22:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
lis_easy.cpp:22:9: error: ‘k’ was not declared in this scope
22 | cout<< k;
| ^