Problem | 3nplus1II |
---|---|
User | WangZhenxuan |
Submission Time | 2025-06-16 23:58:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> length >> time;
| ^~~
3nplus1II.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
3nplus1II.cpp:9:13: error: ‘cout’ was not declared in this scope
9 | cout << -1 << endl;
| ^~~~
3nplus1II.cpp:9:13: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
3nplus1II.cpp:9:27: error: ‘endl’ was not declared in this scope
9 | cout << -1 << endl;
| ^~~~
3nplus1II.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 | using name