Borderou de evaluare (job #2668699)
Utilizator | Data | 5 noiembrie 2020 10:41:32 | |
---|---|---|---|
Problema | Traseu4 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int32_t main()':
main.cpp:32:28: error: cannot convert 'std::pair<long long int, long long int>' to 'long long int' in assignment
pos[a[i][j]]=mp(i,j);
^
main.cpp:37:24: error: conversion from 'long long int' to non-scalar type 'std::pair<long long int, long long int>' requested
pair<ll,ll>p=pos[nr];
~~~~~~^
main.cpp:41:13: error: 'ans' was not declared in this scope
ans=max(ans,p.f-i+p.s-x[i]);
^~~
main.cpp:48:1: error: 'ans' was not declared in this scope
ans++;
^~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !