Problem | weddingcoins |
---|---|
User | Schoolpurposes |
Submission Time | 2025-02-10 09:42:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
cc1plus: error: ‘::main’ must return ‘int’
weddingcoins.cpp: In function ‘int main()’:
weddingcoins.cpp:48:14: error: conflicting declaration ‘auto it’
48 | auto it = find(coin.begin(), coin.end(), n);
| ^~
weddingcoins.cpp:43:14: note: previous declaration as ‘__gnu_cxx::__normal_iterator<long long int*, std::vector<long long int> > it’
43 | auto it = find(coin.begin(), coin.end(), n);
| ^~
weddingcoins.cpp:49:13: error: redeclaration of ‘long long int pos’
49 | int pos = distance(coin.begin(), it);
| ^~~
weddingcoins.cpp:44:13: note: ‘long long int pos’ previously declared here
44 | int pos = distance(coin.begin(), it);
| ^~~
weddingcoins.cpp:53:14: error: conflicting declaration ‘auto it’
53 | auto it = find(coin.begin(), coin.end(), n);
| ^~
weddingcoins.cpp:43:14: note: pre