Problem nou
User pIaceholder
Submission Time 2023-11-25 15:47:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

nou.cpp:4:27: error: stray ‘#’ in program
4 | int num_subarrays(int n) {#include <iostream>
| ^
nou.cpp: In function ‘int num_subarrays(int)’:
nou.cpp:4:28: error: ‘include’ was not declared in this scope
4 | int num_subarrays(int n) {#include <iostream>
| ^~~~~~~
nou.cpp:4:37: error: ‘iostream’ was not declared in this scope; did you mean ‘std::iostream’?
4 | int num_subarrays(int n) {#include <iostream>
| ^~~~~~~~
| std::iostream
In file included from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from nou.cpp:1:
/usr/include/c++/9/iosfwd:144:34: note: ‘std::iostream’ declared here
144 | typedef basic_iostream<char> iostream;
|