QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#303284#5102. Dungeon Crawlerucup-team874#Compile Error//C++172.1kb2024-01-12 03:23:512024-01-12 03:23:52

Details

answer.code: In function ‘int main()’:
answer.code:20:10: error: ‘Node’ was not declared in this scope
   20 |   vector<Node> arr(n);
      |          ^~~~
answer.code:20:14: error: template argument 1 is invalid
   20 |   vector<Node> arr(n);
      |              ^
answer.code:20:14: error: template argument 2 is invalid
answer.code: In lambda function:
answer.code:42:23: error: invalid types ‘int[long long int]’ for array subscript
   42 |       for(auto&& e:arr[u].adj){
      |                       ^
answer.code:45:29: error: ‘w’ was not declared in this scope
   45 |         wdep[v] = wdep[u] + w;
      |                             ^
answer.code: In function ‘int main()’:
answer.code:61:13: error: invalid types ‘int[long long int]’ for array subscript
   61 |       if(arr[i].wdep > mx and arr[i].hask and arr[i].hast){
      |             ^
answer.code:61:34: error: invalid types ‘int[long long int]’ for array subscript
   61 |       if(arr[i].wdep > mx and arr[i].hask and arr[i].hast){
      |                                  ^
answer.code:61:50: error: invalid types ‘int[long long int]’ for array subscript
   61 |       if(arr[i].wdep > mx and arr[i].hask and arr[i].hast){
      |                                                  ^
answer.code:62:17: error: invalid types ‘int[long long int]’ for array subscript
   62 |         mx = arr[i].wdep;
      |                 ^
answer.code: In lambda function:
answer.code:80:23: error: invalid types ‘int[long long int]’ for array subscript
   80 |       for(auto&& e:arr[u].adj){
      |                       ^
answer.code:84:20: error: ‘w’ was not declared in this scope
   84 |           add += 2*w;
      |                    ^
answer.code:90:20: error: ‘w’ was not declared in this scope
   90 |           add -= 2*w;
      |                    ^