Borderou de evaluare (job #1763707)

Utilizator Team_FII_AHreapca Buruiana Ionita Team_FII_A Data 24 septembrie 2016 15:13:40
Problema Trineq Status done
Runda ONIS 2016, Runda Finala Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp:64:0: warning: "MAXN" redefined [enabled by default] #define MAXN 2010 ^ user.cpp:18:0: note: this is the location of the previous definition #define MAXN 10 ^ user.cpp:65:10: error: conflicting declaration ‘LL v [2010]’ LL v[MAXN]; ^ user.cpp:21:5: error: ‘v’ has a previous declaration as ‘int v [3]’ int v[3]; ^ user.cpp: In function ‘int main()’: user.cpp:85:24: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld\n", v[N]); ^ user.cpp:78:29: 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:79:31: 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:82:17: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &T); ^ user.cpp:84:18: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &N); ^

Ceva nu functioneaza?