Borderou de evaluare (job #786480)

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:21:46 Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'void read_and_solve()': main.cpp:12:3: error: expected primary-expression before '__int128' 12 | __int128 s, s_sqr; | ^~~~~~~~ main.cpp:15:3: error: 's' was not declared in this scope 15 | s = s_sqr = 0; | ^ main.cpp:15:7: error: 's_sqr' was not declared in this scope 15 | s = s_sqr = 0; | ^~~~~ main.cpp:28:53: error: expected primary-expression before '__int128' 28 | while(x <= s && (s - x) * (s - x) != s_sqr - x * (__int128)x) { | ^~~~~~~~ main.cpp:28:53: error: expected ')' before '__int128' 28 | while(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(x <= s && (s - x) * (s - x) != s_sqr - x * (__int128)x) { | ^ main.cpp:14:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 14 | fscanf(fin, "%d", &n); | ~~~~~~^~~~~~~~~~~~~~~ main.cpp:17:11: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result] 17 | fscanf(fin, "%d", &a); | ~~~~~~^~~~~~~~~~~~~~~