Problem | potatosalad |
---|---|
User | LYM2025 |
Submission Time | 2025-08-22 15:14:30 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatosalad.cpp: In function ‘int main()’:
potatosalad.cpp:8:10: error: request for member ‘push_back’ in ‘v’, which is of non-class type ‘std::vector<long long int> [a]’
8 | cin>>v.push_back();
| ^~~~~~~~~
potatosalad.cpp:10:9: error: request for member ‘begin’ in ‘v’, which is of non-class type ‘std::vector<long long int> [a]’
10 | sort(v.begin(),v.end(),greater<int>());
| ^~~~~
potatosalad.cpp:10:19: error: request for member ‘end’ in ‘v’, which is of non-class type ‘std::vector<long long int> [a]’
10 | sort(v.begin(),v.end(),greater<int>());
| ^~~
potatosalad.cpp:12:4: error: no match for ‘operator+’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
12 | d+v[j];
| ~^~~~~
| | |
| | std::vector<long long int>
| long long int
In file included from /usr/include/c++