Borderou de evaluare (job #2211825)
Utilizator | Data | 11 iunie 2018 22:33:53 | |
---|---|---|---|
Problema | Sosete | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In member function ‘void BigInt::multiply(BigInt&)’:
user.cpp:93:37: error: ‘strlen’ was not declared in this scope
result.size = strlen(result.digits);
^
user.cpp: In constructor ‘BigInt::BigInt(int)’:
user.cpp:106:35: error: ‘memset’ was not declared in this scope
memset(digits, 0, sizeof(digits));
^
user.cpp: In constructor ‘BigInt::BigInt(char*)’:
user.cpp:116:18: error: ‘strlen’ was not declared in this scope
size = strlen(s);
^
user.cpp: In function ‘int main()’:
user.cpp:138:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1005]’ [-Wformat=]
scanf("%s", &ns);
^
user.cpp:139:17: warning: format ‘%s’ expects argument of type ‘char*’, but argument 2 has type ‘char (*)[1005]’ [-Wformat=]
scanf("%s", &cs);
^
user.cpp:135:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sosete.in", "r", stdin);
^
user.cpp:136:36: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("sosete.out", "w", stdout);
^
user.cpp:138:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &ns);
^
user.cpp:139:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%s", &cs);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !