Borderou de evaluare (job #2507920)

Utilizator mihai_trizDamian Mihai mihai_triz Data 11 decembrie 2019 08:08:50
Problema Spargere Status done
Runda Arhiva ICPC Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Compilare: main.cpp: In function 'int main()': main.cpp:15:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'unsigned int' [-Wformat=] fscanf(f, "%d", n); ^ main.cpp:18:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i < n;i ++) ~~^~~ main.cpp:20:37: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'unsigned int' [-Wformat=] fscanf(f, "%d%d", b[i], t[i]); ^ main.cpp:20:37: warning: format '%d' expects argument of type 'int*', but argument 4 has type 'unsigned int' [-Wformat=] main.cpp:31:22: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'unsigned int' [-Wformat=] fscanf(f, "%d", q); ^ main.cpp:33:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int i = 0;i < q;i ++) ~~^~~ main.cpp:36:26: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'long long unsigned int' [-Wformat=] fscanf(f, "%d", x); ^ main.cpp:40:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for (int j = 0;j < n;j ++) ~~^~~ main.cpp:47:25: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long unsigned int' [-Wformat=] printf("%d", sec); ^ main.cpp:15:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", n); ^ main.cpp:20:38: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d%d", b[i], t[i]); ^ main.cpp:31:23: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", q); ^ main.cpp:36:27: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] fscanf(f, "%d", x); ^ main.cpp:15:23: warning: 'n' is used uninitialized in this function [-Wuninitialized] fscanf(f, "%d", n); ^ main.cpp:31:23: warning: 'q' is used uninitialized in this function [-Wuninitialized] fscanf(f, "%d", q); ^ main.cpp:36:27: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized] fscanf(f, "%d", x); ^
Test Timp executie Memorie folosita Mesaj Punctaj/test Punctaj/grupa
13ms131kbKilled by Signal 1100
22ms131kbKilled by Signal 110
32ms131kbKilled by Signal 110
42ms131kbKilled by Signal 110
52ms131kbKilled by Signal 110
63ms131kbKilled by Signal 110
72ms131kbKilled by Signal 110
82ms131kbKilled by Signal 110
92ms131kbKilled by Signal 110
103ms131kbKilled by Signal 110
Punctaj total0

Ceva nu functioneaza?