Problem | medianstring |
---|---|
User | gordonlu |
Submission Time | 2023-09-27 18:23:15 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
medianstring.cpp: In function ‘int main()’:
medianstring.cpp:6:2: error: ‘cin’ was not declared in this scope; did you mean ‘std::cin’?
6 | cin >> N;
| ^~~
| std::cin
In file included from medianstring.cpp:1:
/usr/include/c++/9/iostream:60:18: note: ‘std::cin’ declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
medianstring.cpp:12:2: error: ‘cout’ was not declared in this scope; did you mean ‘std::cout’?
12 | cout << (sum/N) << endl;
| ^~~~
| std::cout
In file included from medianstring.cpp:1:
/usr/include/c++/9/iostream:61:18: note: ‘std::cout’ declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
medianstring.cpp:12:21: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
12 | cout << (sum/N) << endl;
| ^~~~