Borderou de evaluare (job #3153376)
Utilizator | Data | 29 septembrie 2023 14:41:46 | |
---|---|---|---|
Problema | Geamuri | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:6:36: error: 'stdin' was not declared in this scope
6 | freopen("geamuri.in", "r", stdin);
| ^~~~~
main.cpp:1:1: note: 'stdin' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
+++ |+#include <cstdio>
1 | const int nmax = 1030;
main.cpp:6:9: error: 'freopen' was not declared in this scope
6 | freopen("geamuri.in", "r", stdin);
| ^~~~~~~
main.cpp:7:37: error: 'stdout' was not declared in this scope
7 | freopen("geamuri.out", "w", stdout);
| ^~~~~~
main.cpp:7:37: note: 'stdout' is defined in header '<cstdio>'; did you forget to '#include <cstdio>'?
main.cpp:9:5: error: 'cin' was not declared in this scope
9 | cin >> c >> n;
| ^~~
main.cpp:10:12: error: 'pair' was not declared in this scope
10 | vector<pair<int,int>> ev[nmax];
| ^~~~
main.cpp:10:5: error: 'vector' was not declared in this scope
10 | vector<pair<int,int>> ev[nmax];
| ^~~~~~
main.cpp:10:17: error: expected primary-expression before 'int'
10 | vector<pair<int,int>> ev[nmax];
| ^~~
main.cpp:15:9: error: 'ev' was not declared in this scope
15 | ev[y1].push_back({x1, 1});
| ^~
main.cpp:22:21: error: expected primary-expression before 'int'
22 | vector<pair<int,int>>& v = ev[i];
| ^~~
main.cpp:23:27: error: 'v' was not declared in this scope
23 | for(int j = 0;j < v.size();++j)
| ^
main.cpp:38:9: error: 'cout' was not declared in this scope
38 | cout << cnt[k] << "\n";
| ^~~~
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !