Pagini recente » Borderou de evaluare (job #78473) | Borderou de evaluare (job #2278912) | Borderou de evaluare (job #2829578) | Borderou de evaluare (job #1691304) | Borderou de evaluare (job #1236176)
Borderou de evaluare (job #1236176)
Raport evaluator
Compilare:
user.cpp: In constructor ‘HN::HN(int)’:
user.cpp:22:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[++x[0]]++;
^
user.cpp: In member function ‘HN HN::operator/(long long int)’:
user.cpp:36:26: warning: array subscript has type ‘char’ [-Wchar-subscripts]
while(x[0]>1 && !x[x[0]])
^
user.cpp:47:24: warning: array subscript has type ‘char’ [-Wchar-subscripts]
if(carry==1)x[++x[0]]=1;
^
user.cpp: In member function ‘HN HN::operator*(long long int)’:
user.cpp:61:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[++x[0]]=r%10;
^
user.cpp: In member function ‘void HN::scan()’:
user.cpp:74:12: warning: array subscript has type ‘char’ [-Wchar-subscripts]
x[++x[0]]=c;
^
user.cpp: In function ‘int main()’:
user.cpp:99:22: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘long long int*’ [-Wformat=]
scanf("%I64d", &d);
^
user.cpp:94:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.in", "r", stdin);
^
user.cpp:95:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen("next.out", "w", stdout);
^
user.cpp:99:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%I64d", &d);
^
user.cpp: In member function ‘void HN::scan()’:
user.cpp:70:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
user.cpp:75:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%c", &c);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 4ms | 3220kb | Incorect | 0 |
2 | 4ms | 3216kb | Incorect | 0 |
3 | 4ms | 3200kb | Incorect | 0 |
4 | 4ms | 3216kb | Incorect | 0 |
5 | 8ms | 3220kb | Incorect | 0 |
6 | 12ms | 3204kb | Incorect | 0 |
7 | 24ms | 3200kb | Incorect | 0 |
8 | 56ms | 3204kb | Incorect | 0 |
9 | 72ms | 3204kb | Incorect | 0 |
10 | 80ms | 3200kb | Incorect | 0 |
Punctaj total | 0 |