Borderou de evaluare (job #647364)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Adunare | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 15 apr. 2022 13:34:53 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:9:1: error: 'bc' was not declared in this scope; did you mean 'b5'?
9 | bc = b;
| ^~
| b5
main.cpp:9:6: error: 'b' was not declared in this scope
9 | bc = b;
| ^
main.cpp:10:11: error: 'd' was not declared in this scope
10 | for ( d = 2; b > 1; d++ ) {
| ^
main.cpp:11:7: error: 'p' was not declared in this scope
11 | p = 0;
| ^
main.cpp:17:9: error: 'fact' was not declared in this scope
17 | fact[nfact] = d;
| ^~~~
main.cpp:17:14: error: 'nfact' was not declared in this scope
17 | fact[nfact] = d;
| ^~~~~
main.cpp:18:9: error: 'put' was not declared in this scope; did you mean 'putw'?
18 | put[nfact] = p;
| ^~~
| putw
main.cpp:24:22: error: 'nfact' was not declared in this scope
24 | for ( i = 0; i < nfact; i++ )
| ^~~~~
main.cpp:25:7: error: 'totp' was not declared in this scope
25 | totp[i] = 0;
| ^~~~
main.cpp:26:11: error: 'd' was not declared in this scope
26 | for ( d = 2; d <= n; d++ ) {
| ^
main.cpp:26:23: error: 'n' was not declared in this scope
26 | for ( d = 2; d <= n; d++ ) {
| ^
main.cpp:27:7: error: 'dc' was not declared in this scope
27 | dc = d;
| ^~
main.cpp:28:24: error: 'nfact' was not declared in this scope
28 | for ( i = 0; i < nfact; i++ ) {
| ^~~~~
main.cpp:29:22: error: 'fact' was not declared in this scope
29 | while ( dc % fact[i] == 0 ) {
| ^~~~
main.cpp:31:11: error: 'totp' was not declared in this scope
31 | totp[i]++;
| ^~~~
main.cpp:37:5: error: 'nrzero' was not declared in this scope
37 | nrzero = totp[0] / put[0];