Borderou de evaluare (job #2459093)
Utilizator | Data | 22 septembrie 2019 11:03:51 | |
---|---|---|---|
Problema | Bisuma | Status | done |
Runda | Algoritmiada 2019 Runda Finala Seniori | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:103:21: error: no matching function for call to 'SegTree::SegTree(int&)'
SegTree fst(last),snd(last);
^
main.cpp:45:7: note: candidate: SegTree::SegTree()
class SegTree{
^~~~~~~
main.cpp:45:7: note: candidate expects 0 arguments, 1 provided
main.cpp:45:7: note: candidate: constexpr SegTree::SegTree(const SegTree&)
main.cpp:45:7: note: no known conversion for argument 1 from 'int' to 'const SegTree&'
main.cpp:45:7: note: candidate: constexpr SegTree::SegTree(SegTree&&)
main.cpp:45:7: note: no known conversion for argument 1 from 'int' to 'SegTree&&'
main.cpp:103:31: error: no matching function for call to 'SegTree::SegTree(int&)'
SegTree fst(last),snd(last);
^
main.cpp:45:7: note: candidate: SegTree::SegTree()
class SegTree{
^~~~~~~
main.cpp:45:7: note: candidate expects 0 arguments, 1 provided
main.cpp:45:7: note: candidate: constexpr SegTree::SegTree(const SegTree&)
main.cpp:45:7: note: no known conversion for argument 1 from 'int' to 'const SegTree&'
main.cpp:45:7: note: candidate: constexpr SegTree::SegTree(SegTree&&)
main.cpp:45:7: note: no known conversion for argument 1 from 'int' to 'SegTree&&'
main.cpp:107:37: error: expected primary-expression before ']' token
fst.update(to_norm[b[0]],dp[])
^
main.cpp:108:23: error: 'i' was not declared in this scope
for(int i = 1;i <= n;i++){
^
main.cpp: In function 'int i32()':
main.cpp:29:32: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,LEN,f);
^
main.cpp:37:32: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
fread(buff,1,LEN,f);
^
main.cpp: In function 'int main()':
main.cpp:73:28: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d",&n,&k);
^
main.cpp:78:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&a[i]);
^
main.cpp:83:29: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d",&b[i]);
^
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !