Borderou de evaluare (job #1238382)
Utilizator | Data | 6 octombrie 2014 20:52:03 | |
---|---|---|---|
Problema | Tort | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In constructor ‘HugeN::HugeN(long int)’:
user.cpp:18:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[x[0]] = n % 10;
^
user.cpp: In constructor ‘HugeN::HugeN(long long int)’:
user.cpp:27:19: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[x[0]] = n % 10;
^
user.cpp: In member function ‘HugeN HugeN::operator+(HugeN)’:
user.cpp:46:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
c.x[0]++, c.x[c.x[0]] = t;
^
user.cpp: In member function ‘void HugeN::print()’:
user.cpp:77:31: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%ld", x[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:114:9: error: expected ‘;’ before ‘}’ token
} else {
^
user.cpp:85:10: warning: unused variable ‘i’ [-Wunused-variable]
long i, j;
^
user.cpp:85:13: warning: unused variable ‘j’ [-Wunused-variable]
long i, j;
^
user.cpp:89:30: warning: unused variable ‘kb2’ [-Wunused-variable]
long long ka1, ka2, kb1, kb2;
^
user.cpp:86:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tort.in", "r", stdin);
^
user.cpp:87:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("tort.out", "w", stdout);
^
user.cpp:88:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld %lld", &A, &B);
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !