Problem 3nplus1II
User RandomCtfNoob
Submission Time 2025-02-12 15:48:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp:3:5: error: ‘int time’ redeclared as different kind of entity
3 | int time = 1;
| ^~~~
In file included from /usr/include/c++/9/ctime:42,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:49,
from 3nplus1II.cpp:1:
/usr/include/time.h:75:15: note: previous declaration ‘time_t time(time_t*)’
75 | extern time_t time (time_t *__timer) __THROW;
| ^~~~
3nplus1II.cpp: In function ‘int loopy()’:
3nplus1II.cpp:7:6: error: reference to ‘size’ is ambiguous
7 | if (size == 1){
| ^~~~
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/istream:38,
from /usr/include/c++/9/sstream:38,
from /us