Borderou de evaluare (job #772924)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Cursa (clasa a 7-a) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 8 apr. 2024 23:17:45 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:34:10: error: 'n' was not declared in this scope
34 | cin>>n;
| ^
main.cpp:35:23: error: 'i' was not declared in this scope
35 | for(long longi=1; i<=n; i++)
| ^
main.cpp:37:14: error: 'poz' was not declared in this scope
37 | cin>>poz[i]>>dist[i];
| ^~~
main.cpp:35:14: warning: unused variable 'longi' [-Wunused-variable]
35 | for(long longi=1; i<=n; i++)
| ^~~~~
main.cpp:47:23: error: 'i' was not declared in this scope
47 | for(long longi=1; i<=n; i++)
| ^
main.cpp:47:14: warning: unused variable 'longi' [-Wunused-variable]
47 | for(long longi=1; i<=n; i++)
| ^~~~~
main.cpp:50:23: error: 'i' was not declared in this scope
50 | for(long longi=1; i<=n; i++)
| ^
main.cpp:53:27: error: 'j' was not declared in this scope
53 | for(long longj=1; j<=n; j++){
| ^
main.cpp:59:17: error: 'k' was not declared in this scope
59 | k=j;
| ^
main.cpp:53:18: warning: unused variable 'longj' [-Wunused-variable]
53 | for(long longj=1; j<=n; j++){
| ^~~~~
main.cpp:66:15: error: 'j' was not declared in this scope
66 | while(j<=n && v[j].valoare!=i)
| ^
main.cpp:68:12: error: 'k' was not declared in this scope
68 | if(k-j>=1)
| ^
main.cpp:68:14: error: 'j' was not declared in this scope
68 | if(k-j>=1)
| ^
main.cpp:73:17: error: 'u' was not declared in this scope
73 | u++;
| ^
main.cpp:76:27: error: 'poz' was not declared in this scope
76 | cout<<i<<" "<<poz[i]<<" "<<k-j-u<<" ";
| ^~~
main.cpp:76:44: error: 'u' was not declared in this scope
76 | cout<<i<<" "<<poz[i]<<" "<<k-j-u<<" ";
| ^
main.cpp:77:31: error: 'h' was not declared in this scope