| Problem | toxic2 |
|---|---|
| User | Henries |
| Submission Time | 2025-03-16 23:36:53 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
toxic2.cpp: In function ‘void determine_type(int)’:
toxic2.cpp:29:29: error: cannot convert ‘std::vector<int>’ to ‘long long int’ in initialization
29 | long long r = query_machine(qry);
| ~~~~~~~~~~~~~^~~~~
| |
| std::vector<int>
toxic2.cpp:30:15: error: redeclaration of ‘std::vector<char> ans’
30 | vector<char> ans(n);
| ^~~
toxic2.cpp:13:15: note: ‘std::vector<char> ans’ previously declared here
13 | vector<char> ans;
| ^~~
toxic2.cpp:31:10: error: request for member ‘size’ in ‘r’, which is of non-class type ‘long long int’
31 | if (r[r.size()-1] == 1){//that means type 2 is toxic
| ^~~~