Borderou de evaluare (job #2644762)
Utilizator | Data | 25 august 2020 21:47:44 | |
---|---|---|---|
Problema | Arbore3 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:79:11: error: 'long long int nr' redeclared as different kind of symbol
long long nr;
^~
main.cpp:35:12: note: previous declaration 'int nr()'
inline int nr()
^~
main.cpp: In function 'void dfs1(int)':
main.cpp:84:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i<v[r].size(); i++)
~^~~~~~~~~~~~
main.cpp: In function 'void dfs2(int)':
main.cpp:93:25: warning: pointer to a function used in arithmetic [-Wpointer-arith]
nr = nr + u[sum[r]-s];
^
main.cpp:93:25: error: assignment of function 'int nr()'
main.cpp:93:25: error: cannot convert 'int (*)()' to 'int()' in assignment
main.cpp:96:18: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i<v[r].size(); i++)
~^~~~~~~~~~~~
main.cpp: In function 'int main()':
main.cpp:104:9: error: invalid operands of types 'FILE* {aka _IO_FILE*}' and 'int' to binary 'operator>>'
fin >> n >> s;
~~~~^~~~
main.cpp:107:13: error: invalid operands of types 'FILE* {aka _IO_FILE*}' and 'int' to binary 'operator>>'
fin >> x >> sum[i];
~~~~^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !