Pagini recente » Borderou de evaluare (job #2570820) | Borderou de evaluare (job #2101662) | Borderou de evaluare (job #1807782) | Borderou de evaluare (job #131360) | Borderou de evaluare (job #1490630)
Borderou de evaluare (job #1490630)
Raport evaluator
Compilare:
user.cpp: In function ‘void readData()’:
user.cpp:47:29: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘bool*’ [-Wformat=]
scanf("%d ",&base[i]);
^
user.cpp: In function ‘int main()’:
user.cpp:103:9: warning: unused variable ‘low’ [-Wunused-variable]
int low = 1, high = k, mid, sol;
^
user.cpp:103:18: warning: unused variable ‘high’ [-Wunused-variable]
int low = 1, high = k, mid, sol;
^
user.cpp:103:28: warning: unused variable ‘mid’ [-Wunused-variable]
int low = 1, high = k, mid, sol;
^
user.cpp:103:33: warning: unused variable ‘sol’ [-Wunused-variable]
int low = 1, high = k, mid, sol;
^
user.cpp: In function ‘void readData()’:
user.cpp:44: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:45:28: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d ", &n, &k);
^
user.cpp:47:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ",&base[i]);
^
user.cpp:50:21: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d ", &m);
^
user.cpp:53:50: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d %d %d ", &_a, &_b, &_t, &_w);
^
user.cpp: In function ‘void writeData()’:
user.cpp:95: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);
^
Test |
Timp executie |
Memorie folosita |
Mesaj |
Punctaj/test |
1 | 0ms | 332kb | OK | 10 |
2 | 0ms | 308kb | Incorect | 0 |
3 | 0ms | 304kb | Incorect | 0 |
4 | 0ms | 300kb | Incorect | 0 |
5 | 0ms | 312kb | Incorect | 0 |
6 | 0ms | 300kb | Incorect | 0 |
7 | 0ms | 300kb | Incorect | 0 |
8 | 0ms | 308kb | OK | 10 |
9 | 0ms | 292kb | Incorect | 0 |
10 | 0ms | 296kb | Incorect | 0 |
Punctaj total | 20 |