Borderou de evaluare (job #2643279)

Utilizator teofilotopeniTeofil teofilotopeni Data 19 august 2020 13:17:50
Problema Ridicare la putere in timp logaritmic Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:12:18: error: expected primary-expression before 'long' long long sol = long long(pow(a, b)) % 1999999973; ^~~~ main.cpp:14:18: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=] printf("%d", sol); ^ main.cpp:9:33: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.in", "r", stdin); ^ main.cpp:10:35: warning: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Wunused-result] freopen("lgput.out", "w", stdout); ^ main.cpp:11:24: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", &a, &b); ^ Non zero exit status: 1

Ceva nu functioneaza?