Borderou de evaluare (job #786483)

Utilizator avatar Hanganu_Rares Hanganu Rares Cont Fraudulent Hanganu_Rares IP ascuns
Problemă Missing Numbers Compilator cpp-32
Rundă Arhiva de probleme Status evaluat
Dată 15 sept. 2024 18:26:47 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void read_and_solve()': main.cpp:28:58: error: expected primary-expression before '__int128' 28 | while((u64)x <= s && (s - x) * (s - x) != s_sqr - x * (__int128)x) { | ^~~~~~~~ main.cpp:28:58: error: expected ')' before '__int128' 28 | while((u64)x <= s && (s - x) * (s - x) != s_sqr - x * (__int128)x) { | ~^~~~~~~~ | ) main.cpp:30:4: error: expected ')' before 'fprintf' 30 | } | ^ | ) 31 | 32 | fprintf(fout, "%d %d\n", x, (int)(s - x)); | ~~~~~~~ main.cpp:28:8: note: to match this '(' 28 | while((u64)x <= s && (s - x) * (s - x) != s_sqr - x * (__int128)x) { | ^ main.cpp:15:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 15 | fscanf(fin, "%d", &n); | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:18:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 18 | fscanf(fin, "%d", &a); | ~~~~~~^~~~~~~~~~~~~~~