Problem 3nplus1
User jaydenlol
Submission Time 2026-06-22 16:31:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:2: error: ‘ll’ was not declared in this scope
6 | ll n;
| ^~
3nplus1.cpp:7:9: error: ‘n’ was not declared in this scope; did you mean ‘yn’?
7 | cin >> n;
| ^
| yn
3nplus1.cpp:11:13: error: ‘i’ was not declared in this scope
11 | while (n!= i) {
| ^
3nplus1.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
3nplus1.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^