Borderou de evaluare (job #1986203)

Utilizator susneamariamaria susnea susneamaria Data 28 mai 2017 13:24:00
Problema Armonica Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void back(int, long long int)’: user.cpp:12:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (pos == primes.size()) ^ user.cpp:18:41: warning: for increment expression has no effect [-Wunused-value] for (int i = 0; i <= powers[pos]; i) ^ user.cpp:20:18: error: expected ‘)’ before numeric constant back(pos 1, val); ^ user.cpp: In function ‘void getDivisorsOfN2(long long int)’: user.cpp:27:41: warning: for increment expression has no effect [-Wunused-value] for (int i = 2; 1LL * i * i <= n; i) ^ user.cpp: In function ‘int main()’: user.cpp:67:38: error: expected ‘)’ before ‘d1’ printf("%lld %lld\n", (n d1)/2, (n d2)/2); ^ user.cpp:67:54: error: expected ‘)’ before ‘;’ token printf("%lld %lld\n", (n d1)/2, (n d2)/2); ^ user.cpp:64:23: warning: unused variable ‘d1’ [-Wunused-variable] long long d1 = dv; ^ user.cpp:65:23: warning: unused variable ‘d2’ [-Wunused-variable] long long d2 = 1LL*n*n/dv; ^ user.cpp:79:39: error: expected ‘)’ before ‘d1’ printf("%lld %lld\n", n/2 d1, n/2 d2); ^ user.cpp:79:47: error: expected ‘)’ before ‘d2’ printf("%lld %lld\n", n/2 d1, n/2 d2); ^ user.cpp:79:49: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘int’ [-Wformat=] printf("%lld %lld\n", n/2 d1, n/2 d2); ^ user.cpp:79:49: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 3 has type ‘int’ [-Wformat=] user.cpp:76:23: warning: unused variable ‘d1’ [-Wunused-variable] long long d1 = dv; ^ user.cpp:77:23: warning: unused variable ‘d2’ [-Wunused-variable] long long d2 = 1LL*n*n/4/dv; ^ user.cpp:53:39: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("armonica.in", "r", stdin); ^ user.cpp:54:41: warning: ignoring return value of ‘FILE* freopen(const char*, const char*, FILE*)’, declared with attribute warn_unused_result [-Wunused-result] freopen("armonica.out", "w", stdout); ^ user.cpp:56:20: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]

Ceva nu functioneaza?