Borderou de evaluare (job #1438717)
Utilizator | Data | 20 mai 2015 18:01:04 | |
---|---|---|---|
Problema | Puteri2 | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘BigInt operator+(const BigInt&, const BigInt&)’:
user.cpp:57:53: error: ‘memcpy’ was not declared in this scope
memcpy(&rez.a[0], a, sizeof(unsigned) * (n+1));
^
user.cpp: In member function ‘void BigInt::read(FILE*)’:
user.cpp:140:33: error: ‘memset’ was not declared in this scope
memset(&a[0], 0, 4*a.size());
^
user.cpp: In function ‘void solve()’:
user.cpp:186:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &put);
^
user.cpp: In function ‘int main()’:
user.cpp:204:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("puteri2.in", "r", stdin);
^
user.cpp:205:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("puteri2.out", "w", stdout);
^
user.cpp:207:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d\n", &tst);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !