Problem | payraise |
---|---|
User | PlayVoltz |
Submission Time | 2023-08-23 17:29:34 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
payraise.cpp: In function ‘int main()’:
payraise.cpp:38:7: error: request for member ‘push’ in ‘q’, which is of non-class type ‘long long int’
38 | q.push(num);
| ^~~~
payraise.cpp:40:14: error: request for member ‘empty’ in ‘q’, which is of non-class type ‘long long int’
40 | while (!q.empty()){
| ^~~~~
payraise.cpp:41:15: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
41 | visited[q.front()] = 1;
| ^~~~~
payraise.cpp:42:11: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
42 | pay[q.front()]+=c;
| ^~~~~
payraise.cpp:43:27: error: request for member ‘front’ in ‘q’, which is of non-class type ‘long long int’
43 | for (auto num:graph[q.front()]){
| ^~~~~
payraise.cpp:45:9: error: request for member ‘push’ in ‘q’, which is of non-class t