Open hugochinese opened 2 years ago
Same issue here. Have you found a solution yet?
@hugochinese The %%file directive is used to write files. Just run a cell without the %%file directive and call your main () function. It will work as expected.
its not working please look into it
Code
%%file main.cpp
include \<iostream>
int main(){ std::cout << "Hello world" << std::endl; std::string s; std::getline(std::cin, s); std::cout << s << std::endl; }
output
Overwriting main.cpp
execution
!g++ -o main main.cpp ! ./main
output
Hello world
problem
It does not provide a box for input a string