Borderou de evaluare (job #1194978)

Utilizator paunmatei7FMI Paun Matei paunmatei7 Data 5 iunie 2014 17:25:13
Problema TreiD 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:12:9: error: ‘Sum’ was not declared in this scope Sum += x; ^ user.cpp:15:8: error: ‘d’ was not declared in this scope if(d >= (n - 1) * 10 + Sum) ^ user.cpp:15:28: error: ‘Sum’ was not declared in this scope if(d >= (n - 1) * 10 + Sum) ^ user.cpp:14:9: warning: unused variable ‘nr’ [-Wunused-variable] int nr = s / 5; ^ user.cpp:8:27: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &n, &s); ^ user.cpp:11:24: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d", &x); ^

Ceva nu functioneaza?