Borderou de evaluare (job #2531074)

Utilizator robert.barbu27robert barbu robert.barbu27 Data 25 ianuarie 2020 17:17:22
Problema P-sir Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int src(int)': main.cpp:25:14: warning: statement has no effect [-Wunused-value] for (step; step; step >>= 1) ^ main.cpp:26:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (to + step <= n && p[to+step].val <= val) ~~~~~~~~~~~~~~~^~~~~~ main.cpp: In function 'int main()': main.cpp:68:12: error: expected ';' at end of input return 0 ^ main.cpp:68:12: error: expected '}' at end of input main.cpp:56:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("psir.in", "r", stdin); ^ main.cpp:57:37: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("psir.out", "w", stdout); ^ main.cpp:59:20: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &n); ^ main.cpp:61:27: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%u", &a[i]); ^ Non zero exit status: 1

Ceva nu functioneaza?