Borderou de evaluare (job #786469)
| Utilizator |
|
IP | ascuns |
|---|---|---|---|
| Problemă | Missing Numbers | Compilator | cpp-32 |
| Rundă | Arhiva de probleme | Status | evaluat |
| Dată | 15 sept. 2024 17:40:44 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'void solve()':
main.cpp:14:3: error: expected primary-expression before '__int128'
14 | __int128 s, spat, s1, s2, s1miss, s2miss;
| ^~~~~~~~
main.cpp:16:3: error: 's' was not declared in this scope
16 | s = spat = 0;
| ^
main.cpp:16:7: error: 'spat' was not declared in this scope
16 | s = spat = 0;
| ^~~~
main.cpp:24:3: error: 's1' was not declared in this scope; did you mean 'y1'?
24 | s1 = n * (long long)(n + 1) / 2;
| ^~
| y1
main.cpp:25:3: error: 's2' was not declared in this scope
25 | s2 = n * (__int128)(n + 1) * (2 * n + 1) / 6;
| ^~
main.cpp:25:13: error: expected primary-expression before '__int128'
25 | s2 = n * (__int128)(n + 1) * (2 * n + 1) / 6;
| ^~~~~~~~
main.cpp:25:13: error: expected ')' before '__int128'
25 | s2 = n * (__int128)(n + 1) * (2 * n + 1) / 6;
| ~^~~~~~~~
| )
main.cpp:27:3: error: 's1miss' was not declared in this scope
27 | s1miss = s1 - s;
| ^~~~~~
main.cpp:28:3: error: 's2miss' was not declared in this scope
28 | s2miss = s2 - spat;
| ^~~~~~
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", &x);
| ~~~~~~^~~~~~~~~~~~~~~