Borderou de evaluare (job #1484448)

Utilizator BlaugranasEnal Gemaledin Blaugranas Data 11 septembrie 2015 11:07:13
Problema Taxe2 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:18:34: warning: pointer to a function used in arithmetic [-Wpointer-arith] printf("%d",x[n][n]<=s?(s-M[n][n]):-1); ^ user.cpp:18:37: warning: pointer to a function used in arithmetic [-Wpointer-arith] printf("%d",x[n][n]<=s?(s-M[n][n]):-1); ^ user.cpp:18:37: error: invalid operands of types ‘int’ and ‘int(int, int)’ to binary ‘operator-’ user.cpp:7:86: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("taxe2.in","r",stdin),freopen("taxe2.out","w",stdout),scanf("%d%d",&s,&n); ^ user.cpp:7:86: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:7:86: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] user.cpp:10:43: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t[i][j]),x[i][j]=40804; ^

Ceva nu functioneaza?