Borderou de evaluare (job #2580505)

Utilizator rares404AlShaytan - Balasescu Rares rares404 Data 13 martie 2020 18:14:55
Problema Indep Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In constructor 'BigInt::BigInt()': main.cpp:31:33: error: 'memset' was not declared in this scope memset (v, 0, sizeof (v)); ^ main.cpp: In member function 'void BigInt::reset()': main.cpp:69:16: warning: unused variable 'p' [-Wunused-variable] int i, p; ^ main.cpp: In function 'void comp(int, int)': main.cpp:91:26: error: no match for 'operator+' (operand types are 'BigInt' and 'int') dp[i][num] = dp[i][num] + 1 ; ~~~~~~~~~~~^~~ main.cpp: In function 'int main(int, const char**)': main.cpp:100:16: error: no match for 'operator=' (operand types are 'BigInt' and 'int') dp[1][v[1]] = 1 ; ^ main.cpp:33:12: note: candidate: BigInt BigInt::operator=(const BigInt&) BigInt operator = (const BigInt &other) { ^~~~~~~~ main.cpp:33:12: note: no known conversion for argument 1 from 'int' to 'const BigInt&' main.cpp:104:11: error: 'struct BigInt' has no member named 'display' dp[n][1].display() ; ^~~~~~~ main.cpp:96:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", &n) ; ^ main.cpp:98:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(in, "%d", v + i) ; ^ Non zero exit status: 1

Ceva nu functioneaza?