| Problem | brackets |
|---|---|
| User | jmuzhen |
| Submission Time | 2025-07-03 21:39:15 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
brackets.cpp: In function ‘int main()’:
brackets.cpp:19:15: error: conflicting declaration ‘long long int a’
19 | long long a = 0;
| ^
brackets.cpp:14:23: note: previous declaration as ‘std::vector<long long int> a’
14 | vector<long long> a(n);
| ^
brackets.cpp:33:23: error: no match for ‘operator+=’ (operand types are ‘std::vector<long long int>’ and ‘long long int’)
33 | a += best_open_val + a[i];
brackets.cpp:47:10: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘std::vector<long long int>’)
47 | cout << a << endl;
| ~~~~ ^~ ~
| | |
| | std::vector<long long int>
| std::ostream {aka std::basic_ostream<char>}
In file included from /usr/include/c++/9/istream:39,
fr