Pagini recente » Borderou de evaluare (job #479598) | Borderou de evaluare (job #1965354) | Borderou de evaluare (job #1626096) | Borderou de evaluare (job #1703782) | Borderou de evaluare (job #1393494)
Borderou de evaluare (job #1393494)
Raport evaluator
Compilare:
user.cpp: In function ‘int main()’:
user.cpp:72:34: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=]
printf("%lld\n", p*last + rem);
^
user.cpp:48:9: warning: unused variable ‘n’ [-Wunused-variable]
int n, i, j, lastSeg, last;
^
user.cpp:48:15: warning: unused variable ‘j’ [-Wunused-variable]
int n, i, j, lastSeg, last;
^
user.cpp:48:18: warning: unused variable ‘lastSeg’ [-Wunused-variable]
int n, i, j, lastSeg, last;
^
user.cpp:50:12: warning: unused variable ‘res’ [-Wunused-variable]
result res;
^
user.cpp:45:32: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(inFile, "r", stdin);
^
user.cpp:46:34: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
freopen(outFile, "w", stdout);
^
user.cpp:52:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &k, &p);
^
user.cpp:55:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &v[i]);
^
user.cpp:35:9: warning: ‘last’ may be used uninitialized in this function [-Wmaybe-uninitialized]
if(x >= v[i])
^
user.cpp:48:27: note: ‘last’ was declared here
int n, i, j, lastSeg, last;
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
Punctaj/grupa |
1 | 0ms | 260kb | OK | 10 | 0 |
2 | 0ms | 264kb | Incorect | 0 |
3 | 0ms | 264kb | Incorect | 0 | 0 |
4 | 0ms | 300kb | OK | 10 | 10 |
5 | 0ms | 300kb | OK | 10 | 10 |
6 | 20ms | 652kb | Incorect | 0 | 0 |
7 | 24ms | 652kb | Incorect | 0 | 0 |
8 | 20ms | 644kb | Incorect | 0 | 0 |
9 | 4ms | 336kb | Incorect | 0 | 0 |
10 | 24ms | 652kb | Incorect | 0 | 0 |
Punctaj total | 20 |