Borderou de evaluare (job #720054)
Utilizator |
|
IP | ascuns |
---|---|---|---|
Problemă | Meta (clasele 11-12) | Compilator | cpp-32 |
Rundă | Arhiva de probleme | Status | evaluat |
Dată | 18 mai 2023 06:24:07 | Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp:37:1: error: 'pair' does not name a type
37 | pair<int,pair<int,int>>A[maxm];
| ^~~~
main.cpp:41:1: error: 'vector' does not name a type
41 | vector<pair<int,int>>v[maxn],v1[maxn];
| ^~~~~~
main.cpp: In function 'void dfs(int, int, int)':
main.cpp:93:18: error: 'v1' was not declared in this scope; did you mean 's1'?
93 | for (auto it:v1[x]){
| ^~
| s1
main.cpp:105:24: error: 'max' was not declared in this scope; did you mean 'maxn'?
105 | dfs(it.F,x,max(maxim,it.S));
| ^~~
| maxn
main.cpp: In function 'int main()':
main.cpp:125:5: error: 'ifstream' was not declared in this scope
125 | ifstream cin("meta.in");
| ^~~~~~~~
main.cpp:1:1: note: 'std::ifstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
+++ |+#include <fstream>
1 |
main.cpp:129:5: error: 'ofstream' was not declared in this scope
129 | ofstream cout("meta.out");
| ^~~~~~~~
main.cpp:129:5: note: 'std::ofstream' is defined in header '<fstream>'; did you forget to '#include <fstream>'?
main.cpp:133:5: error: 'cin' was not declared in this scope
133 | cin >> n >> m;
| ^~~
main.cpp:1:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
+++ |+#include <iostream>
1 |
main.cpp:153:9: error: 'A' was not declared in this scope
153 | A[i]={c,{x,y}};
| ^
main.cpp:157:9: error: 'v' was not declared in this scope
157 | v[x].pb({y,c});
| ^
main.cpp:169:10: error: 'A' was not declared in this scope
169 | sort(A+1,A+1+m);
| ^
main.cpp:169:5: error: 'sort' was not declared in this scope; did you mean 'short'?
169 | sort(A+1,A+1+m);
| ^~~~
| short
main.cpp:185:20: error: 'y' was not declared in this scope
185 | int b=find(y);
| ^
main.cpp:201:13: error: 'v1' was not declared in this scope; did you mean 's1'?
201 | v1[x].pb({y,A[i].F});