Problem 3nplus1II
User angei
Submission Time 2025-08-01 15:34:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:3:5: error: ‘cin’ was not declared in this scope
3 | cin >> n >> t;
| ^~~
3nplus1II.cpp:7:13: error: ‘cout’ was not declared in this scope
7 | cout << -1;
| ^~~~
3nplus1II.cpp:17:5: error: ‘cout’ was not declared in this scope
17 | cout << n; // Output the length at time t
| ^~~~
3nplus1II.cpp: At global scope:
3nplus1II.cpp:25:5: error: redefinition of ‘int main()’
25 | int main() {
| ^~~~
3nplus1II.cpp:1:5: note: ‘int main()’ previously defined here
1 | int main() {
| ^~~~