Borderou de evaluare (job #2629500)
Utilizator | Data | 21 iunie 2020 11:49:22 | |
---|---|---|---|
Problema | RangeMode | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:7:12: error: expected unqualified-id before ')' token
struct str()
^
main.cpp: In function 'bool cmp(str, str)':
main.cpp:13:14: error: 'a' has incomplete type
bool cmp(str a, str b)
^
main.cpp:7:8: note: forward declaration of 'struct str'
struct str()
^~~
main.cpp:13:21: error: 'b' has incomplete type
bool cmp(str a, str b)
^
main.cpp:7:8: note: forward declaration of 'struct str'
struct str()
^~~
main.cpp: In function 'int main()':
main.cpp:21:5: error: 'sqr' was not declared in this scope
sqr=sqrt(n);
^~~
main.cpp:21:15: error: 'sqrt' was not declared in this scope
sqr=sqrt(n);
^
main.cpp:22:10: error: 'i' was not declared in this scope
for (i=1;i<=n;i++) cin>>v[i];
^
main.cpp:22:29: error: 'v' was not declared in this scope
for (i=1;i<=n;i++) cin>>v[i];
^
main.cpp:23:10: error: 'i' was not declared in this scope
for (i=1;i<=m;i++)
^
main.cpp:25:14: error: 'st' was not declared in this scope
cin>>st>>dr;
^~
main.cpp:25:18: error: 'dr' was not declared in this scope
cin>>st>>dr;
^~
main.cpp:28:10: error: 'i' was not declared in this scope
for (i=1;i<=sqr;i++)
^
main.cpp:30:16: error: request for member 'begin' in 'q', which is of non-class type 'std::vector<str> [301]'
sort(q.begin(),q.end(),cmp;)
^~~~~
main.cpp:30:26: error: request for member 'end' in 'q', which is of non-class type 'std::vector<str> [301]'
sort(q.begin(),q.end(),cmp;)
^~~
main.cpp:30:35: error: expected ')' before ';' token
sort(q.begin(),q.end(),cmp;)
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !