Problem summarizing2021
User AnnoyingGuest
Submission Time 2023-01-01 01:46:34
Score 0
Max Time N/A
Max Memory N/A

Compile Error

summarizing2021.cpp:6:24: error: conflicting declaration of ‘std::vector<int> guess(int)’ with ‘C’ linkage
6 | extern "C" vector<int> guess(int n){
| ^~~~~
In file included from summarizing2021.cpp:1:
summarizing2021.h:4:13: note: previous declaration with ‘C++’ linkage
4 | vector<int> guess(int n);
| ^~~~~
summarizing2021.cpp: In function ‘std::vector<int> guess(int)’:
summarizing2021.cpp:8:29: error: ‘arr’ was not declared in this scope
8 | for (int x=0;x<n;x++) v[x]=arr[x+1];
| ^~~