Borderou de evaluare (job #1719157)

Utilizator dobrebogdanDobre Bogdan Mihai dobrebogdan Data 19 iunie 2016 12:39:23
Problema Magnet Status done
Runda Algoritmiada 2016 Runda 4 Seniori Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:23:14: error: expected ‘;’ before ‘)’ token for(i) ^ user.cpp:23:14: warning: statement has no effect [-Wunused-value] user.cpp:24:5: error: expected primary-expression before ‘}’ token } ^ user.cpp:24:5: error: expected ‘;’ before ‘}’ token user.cpp:24:5: error: expected primary-expression before ‘}’ token user.cpp:24:5: error: expected ‘)’ before ‘}’ token user.cpp:24:5: error: expected primary-expression before ‘}’ token user.cpp:24:5: error: expected ‘;’ before ‘}’ token user.cpp:8:15: warning: unused variable ‘j’ [-Wunused-variable] int t,n,i,j; ^ user.cpp:6:35: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("magnet.in","r",stdin); ^ user.cpp:7:37: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("magnet.out","w",stdout); ^ user.cpp:9:19: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&t); ^ user.cpp:12:23: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&n); ^ user.cpp:15:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&a[i]); ^ user.cpp:20:30: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d",&b[i]); ^

Ceva nu functioneaza?