Borderou de evaluare (job #2258364)
Utilizator | Data | 11 octombrie 2018 11:58:47 | |
---|---|---|---|
Problema | Petrecere | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In constructor ‘BigInt::BigInt(int)’:
user.cpp:107:35: error: ‘memset’ was not declared in this scope
memset(digits, 0, sizeof(digits));
^
user.cpp: In constructor ‘BigInt::BigInt(char*)’:
user.cpp:117:18: error: ‘strlen’ was not declared in this scope
size = strlen(s);
^
user.cpp: In function ‘int main()’:
user.cpp:161:18: warning: format ‘%lld’ expects argument of type ‘long long int*’, but argument 2 has type ‘int*’ [-Wformat=]
scanf("%lld", &n);
^
user.cpp:158:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("petrecere.in", "r", stdin);
^
user.cpp:159:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("petrecere.out", "w", stdout);
^
user.cpp:161:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld", &n);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !