Borderou de evaluare (job #1351404)

Utilizator RazvanBawsRazvan Radoi RazvanBaws Data 21 februarie 2015 10:57:40
Problema Cautare binara Status done
Runda Arhiva educationala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:11:16: error: stray ‘#’ in program void combinari#include <cstdio> ^ user.cpp:11:17: error: expected initializer before ‘include’ void combinari#include <cstdio> ^ user.cpp: In function ‘int main()’: user.cpp:28:22: error: ‘M’ was not declared in this scope for(int t = 0; t<M; ++t) ^ user.cpp: In function ‘void read()’: user.cpp:34:19: error: ‘N’ was not declared in this scope scanf("%d\n",&N); ^ user.cpp:37:17: error: ‘M’ was not declared in this scope scanf("%d",&M); ^ user.cpp: In function ‘int BS_0(int)’: user.cpp:54:22: error: ‘N’ was not declared in this scope int li = 0, lf = N; ^ user.cpp: In function ‘int BS_1(int)’: user.cpp:70:22: error: ‘N’ was not declared in this scope int li = 0, lf = N - 1; ^ user.cpp: In function ‘int BS_2(int)’: user.cpp:86:22: error: ‘N’ was not declared in this scope int li = 0, lf = N - 1; ^ user.cpp: At global scope: user.cpp:98:3: error: expected unqualified-id before ‘int’ }(int i, int v[]) ^ user.cpp:98:3: error: expected ‘)’ before ‘int’ user.cpp: In function ‘int main()’: user.cpp:25:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.in","rt",stdin); ^ user.cpp:26:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("cautbin.out","wt",stdout); ^ user.cpp: In function ‘void read()’: user.cpp:36:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%ld",V + i); ^ user.cpp: In function ‘void solve()’: user.cpp:43:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d",&k,&x); ^

Ceva nu functioneaza?