Borderou de evaluare (job #726805)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Calculator | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 iul. 2023 18:33:52 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:6:19: error: two or more data types in declaration of 'n'
6 | #define long long int
| ^~~
main.cpp:10:21: note: in expansion of macro 'long'
10 | int Divide(int y[], long long n)
| ^~~~
main.cpp: In function 'int Divide(...)':
main.cpp:13:21: error: 'y' was not declared in this scope
13 | for(int i=0; i<=y[0]; i++)
| ^
main.cpp:6:19: error: two or more data types in declaration of 'i'
6 | #define long long int
| ^~~
main.cpp:17:5: note: in expansion of macro 'long'
17 | long long i,r=0;
| ^~~~
main.cpp:6:19: error: two or more data types in declaration of 'r'
6 | #define long long int
| ^~~
main.cpp:17:5: note: in expansion of macro 'long'
17 | long long i,r=0;
| ^~~~
main.cpp:18:9: error: 'i' was not declared in this scope
18 | for(i=x[0]; i>0; i--)
| ^
main.cpp:20:9: error: 'r' was not declared in this scope
20 | r=10*r+x[i];
| ^
main.cpp:21:18: error: 'n' was not declared in this scope
21 | x[i] = r/n;
| ^
main.cpp:27:12: error: 'r' was not declared in this scope
27 | return r;
| ^
main.cpp: In function 'int main()':
main.cpp:34:12: warning: unused variable 'val' [-Wunused-variable]
34 | int k, val=0, ok=0,a;
| ^~~
main.cpp:34:24: warning: unused variable 'a' [-Wunused-variable]
34 | int k, val=0, ok=0,a;
| ^