Borderou de evaluare (job #1708867)
Raport evaluator
Compilare:
user.cpp: In function ‘void read()’:
user.cpp:14:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘long long unsigned int*’ [-Wformat=]
fscanf(f,"%d %d", &n, &p);
^
user.cpp:14:26: warning: format ‘%d’ expects argument of type ‘int*’, but argument 4 has type ‘long long unsigned int*’ [-Wformat=]
user.cpp: In function ‘void solve()’:
user.cpp:32:16: warning: left operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:32:28: warning: right operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:32:33: warning: right operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:32:38: warning: right operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:32:43: warning: right operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:32:48: warning: right operand of comma operator has no effect [-Wunused-value]
while (number <= 18, 446, 744, 073, 709, 551, 614)
^
user.cpp:36:27: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long long unsigned int’ [-Wformat=]
fprintf(f2,"%d", number);
^
user.cpp: In function ‘void read()’:
user.cpp:14:27: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d %d", &n, &p);
^
user.cpp: In function ‘int main()’:
user.cpp:52:20: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
fscanf(f,"%d", &t);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 68ms | 264kb | Incorect | 0 |
Punctaj total | 0 |