Borderou de evaluare (job #800106)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Permutări1 (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 16 dec. 2024 21:27:33 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:8:1: error: 'unsigend' does not name a type; did you mean 'unsigned'?
8 | unsigend long long N, p=0, suma=0, x=0;
| ^~~~~~~~
| unsigned
main.cpp: In function 'int perm(int)':
main.cpp:36:14: error: 'N' was not declared in this scope
36 | if (s == N - 1)
| ^
main.cpp:42:9: error: 'p' was not declared in this scope
42 | p++;
| ^
main.cpp:46:20: error: 'x' was not declared in this scope
46 | ifs >> x;
| ^
main.cpp:50:13: error: 'x' was not declared in this scope
50 | if (x == p)
| ^
main.cpp:58:13: error: 'suma' was not declared in this scope
58 | suma += val;
| ^~~~
main.cpp:62:21: error: 'N' was not declared in this scope
62 | for (i = 0; i < N - s; i++)
| ^
main.cpp: In function 'int main()':
main.cpp:79:12: error: 'N' was not declared in this scope
79 | ifs >> N;
| ^
main.cpp:85:12: error: 'suma' was not declared in this scope
85 | ofs << suma << endl;
| ^~~~