Borderou de evaluare (job #1439467)

Utilizator Cristian1997Vintur Cristian Cristian1997 Data 22 mai 2015 13:11:00
Problema Metrou2 Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:85:29: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if(i & (1 << a) != 0) ^ user.cpp:87:33: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if(i & (1 << b) != 0) ^ user.cpp:93:33: warning: suggest parentheses around comparison in operand of ‘&’ [-Wparentheses] if(i & (1 << b) != 0) ^ user.cpp: In function ‘void newLantTer(int)’: user.cpp:213:1: error: expected ‘;’ before ‘}’ token } ^ user.cpp:212:13: warning: statement has no effect [-Wunused-value] lant[nrL] ^ user.cpp:209:9: warning: unused variable ‘i’ [-Wunused-variable] int i; ^ user.cpp: In function ‘int main()’: user.cpp:36:38: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("metrou2.in", "r", stdin); ^ user.cpp:37:40: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("metrou2.out", "w", stdout); ^ user.cpp:41:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &m); ^ user.cpp:43:47: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] for(i = 1; i <= n; ++i) scanf("%d", v + i); ^ user.cpp:47:31: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^ user.cpp: At global scope: user.cpp:27:24: warning: ‘lantTer’ defined but not used [-Wunused-variable] struct { int v, val; } lantTer[nrTer]; ^

Ceva nu functioneaza?