#1462
Gasti
Problema | Gasti | Operații I/O |
gasti.in /gasti.out
|
---|---|---|---|
Limita timp | 0.5 secunde | Limita memorie |
Total: 16 MB
/
Stivă 4 MB
|
Id soluție | #55167473 | Utilizator | |
Fișier | gasti.cpp | Dimensiune | 4.61 KB |
Data încărcării | 02 Ianuarie 2025, 22:29 | Scor / rezultat | Eroare de compilare |
gasti.cpp:9:21: error: size of array 'graph' is too large int graph[MAXN][MAXN]; // Adjacency matrix ^ gasti.cpp:11:22: error: size of array 'knows' is too large bool knows[MAXN][MAXN]; // Knows relationship matrix ^ gasti.cpp: In function 'void buildKnowsRelationship(int)': gasti.cpp:20:9: error: 'knows' was not declared in this scope knows[i][i] = true; ^ gasti.cpp:22:29: error: 'graph' was not declared in this scope int friend_id = graph[i][j]; ^ gasti.cpp:33:31: error: 'knows' was not declared in this scope if(i != j && !knows[i][j]) { ^ gasti.cpp: In function 'bool isFriend(int, int)': gasti.cpp:49:12: error: 'graph' was not declared in this scope if(graph[x][i] == y) return true; ^ gasti.cpp: In function 'void addFriend(int, int)': gasti.cpp:55:5: error: 'graph' was not declared in this scope graph[x][graphSize[x]++] = y; ^ gasti.cpp: In function 'void removeFriend(int, int)': gasti.cpp:60:12: error: 'graph' was not declared in this scope if(graph[x][i] == y) { ^ gasti.cpp: In function 'void findGangs(int)': gasti.cpp:85:25: error: 'knows' was not declared in this scope if(!knows[j][gang[k]]) { ^ gasti.cpp:97:21: error: 'knows' was not declared in this scope if(!knows[gang[x]][gang[y]]) { ^ gasti.cpp: In function 'int countPossibleNewEdges(int)': gasti.cpp:117:30: error: size of array 'tempKnows' is too large bool tempKnows[MAXN][MAXN]; ^ gasti.cpp:129:20: error: 'tempKnows' was not declared in this scope memcpy(tempKnows, knows, sizeof(knows)); ^ gasti.cpp:129:31: error: 'knows' was not declared in this scope memcpy(tempKnows, knows, sizeof(knows)); ^ gasti.cpp: In function 'int main()': gasti.cpp:166:12: error: 'knows' was not declared in this scope memset(knows, false, sizeof(knows)); ^
www.pbinfo.ro permite evaluarea a două tipuri de probleme:
Problema Gasti face parte din prima categorie. Soluția propusă de tine va fi evaluată astfel:
Suma punctajelor acordate pe testele utilizate pentru verificare este 100. Astfel, soluția ta poate obține cel mult 100 de puncte, caz în care se poate considera corectă.