Problem | gotoschool |
---|---|
User | StarSparrowFox |
Submission Time | 2024-11-10 15:22:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gotoschool.cpp: In function ‘int main()’:
gotoschool.cpp:11:3: error: reference to ‘array’ is ambiguous
11 | array[student] = i;
| ^~~~~
In file included from /usr/include/c++/9/tuple:39,
from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from gotoschool.cpp:1:
/usr/include/c++/9/array:94:12: note: candidates are: ‘template<class _Tp, long unsigned int _Nm> struct std::array’
94 | struct array
| ^~~~~
gotoschool.cpp:4:5: note: ‘int array [100050]’
4 | int array[100050];
| ^~~~~
gotoschool.cpp:15:11: error: reference to ‘array’ is ambiguous
15 | cout << array[i] << " ";
| ^~~~~
In file included from /usr/i