Borderou de evaluare (job #2187336)

Utilizator borscalinCalin-Stefan Georgescu borscalin Data 26 martie 2018 13:36:45
Problema Taietura Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:26:23: error: no match for ‘operator=’ (operand types are ‘C’ and ‘C*’) *x = &cut[v[i]]; ^ user.cpp:7:8: note: candidate: C& C::operator=(const C&) struct C { ^ user.cpp:7:8: note: no known conversion for argument 1 from ‘C*’ to ‘const C&’ user.cpp:7:8: note: candidate: C& C::operator=(C&&) user.cpp:7:8: note: no known conversion for argument 1 from ‘C*’ to ‘C&&’ user.cpp:29:31: error: request for member ‘dr’ in ‘x’, which is of pointer type ‘C*’ (maybe you meant to use ‘->’ ?) Mult[i] = Mult[i] + x.dr - x.st + 1; ^~ user.cpp:29:38: error: request for member ‘st’ in ‘x’, which is of pointer type ‘C*’ (maybe you meant to use ‘->’ ?) Mult[i] = Mult[i] + x.dr - x.st + 1; ^~ user.cpp:15:28: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%d", &n ); ^ user.cpp:17:37: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] fscanf( fin, "%lld", &v[i] ); ^

Ceva nu functioneaza?